fix:change header styles
This commit is contained in:
parent
1b38e78ebd
commit
e3431533ca
|
|
@ -34,8 +34,8 @@ export function Header({
|
||||||
const redirectHandler = async () => {
|
const redirectHandler = async () => {
|
||||||
try {
|
try {
|
||||||
const getData = await apiService.post('/GenerateSsoCode')
|
const getData = await apiService.post('/GenerateSsoCode')
|
||||||
// const url = `http://localhost:3000/redirect/${getData.data}`;
|
const url = `http://localhost:3000/redirect/${getData.data}`;
|
||||||
const url = `https://inogen-bpms.pelekan.org/redirect/${getData.data}`;
|
// const url = `https://inogen-bpms.pelekan.org/redirect/${getData.data}`;
|
||||||
window.open(url, "_blank");
|
window.open(url, "_blank");
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
|
|
@ -75,6 +75,13 @@ export function Header({
|
||||||
<div className="relative">
|
<div className="relative">
|
||||||
<div className="flex items-center gap-2">
|
<div className="flex items-center gap-2">
|
||||||
|
|
||||||
|
{
|
||||||
|
user?.id === 2041 && <button
|
||||||
|
className="flex w-full items-center gap-2 px-3 py-2 text-sm text-gray-300 hover:bg-gradient-to-r hover:from-emerald-500/10 hover:to-teal-500/10 hover:text-emerald-300 font-persian"
|
||||||
|
onClick={redirectHandler}>
|
||||||
|
<Server className="h-4 w-4" />
|
||||||
|
ورود به میزکار مدیریت</button>
|
||||||
|
}
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
variant="ghost"
|
variant="ghost"
|
||||||
|
|
@ -95,17 +102,10 @@ export function Header({
|
||||||
</div>
|
</div>
|
||||||
<ChevronDown className="h-3 w-3" />
|
<ChevronDown className="h-3 w-3" />
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
<button
|
|
||||||
className="flex w-full items-center gap-2 px-3 py-2 text-sm text-gray-300 hover:bg-gradient-to-r hover:from-emerald-500/10 hover:to-teal-500/10 hover:text-emerald-300 font-persian"
|
|
||||||
onClick={redirectHandler}>
|
|
||||||
<Server className="h-4 w-4" />
|
|
||||||
ورود به سامانه BPMS
|
|
||||||
</button>
|
|
||||||
</div>
|
</div>
|
||||||
{/* Profile Dropdown */}
|
{/* Profile Dropdown */}
|
||||||
{isProfileMenuOpen && (
|
{isProfileMenuOpen && (
|
||||||
<div className="absolute left-1/2 top-full mt-2 w-48 bg-gray-800 border border-emerald-500/30 rounded-lg shadow-lg z-50">
|
<div className="absolute left-0 top-full mt-2 w-48 bg-gray-800 border border-emerald-500/30 rounded-lg shadow-lg z-50">
|
||||||
<div className="p-3 border-b border-emerald-500/30">
|
<div className="p-3 border-b border-emerald-500/30">
|
||||||
<div className="text-sm font-medium text-white font-persian">
|
<div className="text-sm font-medium text-white font-persian">
|
||||||
{user?.name} {user?.family}
|
{user?.name} {user?.family}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user