authfooter
This commit is contained in:
1 parent
db8ed2994a
commit
05aa1e7112
1 file changed
+14
-8
@@ -5,6 +5,7 @@ import IconButton from "@mui/material/IconButton";
|
|||||||
import Menu from "@mui/material/Menu";
|
import Menu from "@mui/material/Menu";
|
||||||
import MenuItem from "@mui/material/MenuItem";
|
import MenuItem from "@mui/material/MenuItem";
|
||||||
import { useTheme } from "@mui/material";
|
import { useTheme } from "@mui/material";
|
||||||
|
import { SPACING, LAYOUT } from "@/Utils/Theme/constants";
|
||||||
import { useSelector, useDispatch } from "react-redux";
|
import { useSelector, useDispatch } from "react-redux";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
@@ -64,9 +65,9 @@ export const AuthFooter = ({ collapsed, accountMenuItems }: AuthFooterProps) =>
|
|||||||
});
|
});
|
||||||
|
|
||||||
const menuItemSx = {
|
const menuItemSx = {
|
||||||
gap: theme.spacing(2),
|
gap: theme.spacing(LAYOUT.MD),
|
||||||
borderRadius: theme.shape.borderRadius,
|
borderRadius: theme.shape.borderRadius,
|
||||||
pl: theme.spacing(4),
|
pl: theme.spacing(LAYOUT.XS),
|
||||||
"& svg": { stroke: theme.palette.text.secondary },
|
"& svg": { stroke: theme.palette.text.secondary },
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -74,9 +75,9 @@ export const AuthFooter = ({ collapsed, accountMenuItems }: AuthFooterProps) =>
|
|||||||
<Stack
|
<Stack
|
||||||
direction="row"
|
direction="row"
|
||||||
alignItems="center"
|
alignItems="center"
|
||||||
py={theme.spacing(4)}
|
py={theme.spacing(LAYOUT.XS)}
|
||||||
px={theme.spacing(8)}
|
px={theme.spacing(LAYOUT.MD)}
|
||||||
gap={theme.spacing(4)}
|
gap={theme.spacing(LAYOUT.MD)}
|
||||||
>
|
>
|
||||||
<Avatar
|
<Avatar
|
||||||
small
|
small
|
||||||
@@ -88,7 +89,7 @@ export const AuthFooter = ({ collapsed, accountMenuItems }: AuthFooterProps) =>
|
|||||||
<Stack
|
<Stack
|
||||||
direction="row"
|
direction="row"
|
||||||
alignItems="center"
|
alignItems="center"
|
||||||
gap={theme.spacing(2)}
|
gap={theme.spacing(SPACING.MD)}
|
||||||
minWidth={0}
|
minWidth={0}
|
||||||
flex={1}
|
flex={1}
|
||||||
>
|
>
|
||||||
@@ -132,10 +133,15 @@ export const AuthFooter = ({ collapsed, accountMenuItems }: AuthFooterProps) =>
|
|||||||
disableScrollLock
|
disableScrollLock
|
||||||
anchorOrigin={{ vertical: "top", horizontal: "right" }}
|
anchorOrigin={{ vertical: "top", horizontal: "right" }}
|
||||||
slotProps={{
|
slotProps={{
|
||||||
paper: { sx: { mt: theme.spacing(-4), ml: collapsed ? theme.spacing(2) : 0 } },
|
paper: {
|
||||||
|
sx: {
|
||||||
|
mt: theme.spacing(-LAYOUT.XS),
|
||||||
|
ml: collapsed ? theme.spacing(SPACING.LG) : 0,
|
||||||
|
},
|
||||||
|
},
|
||||||
}}
|
}}
|
||||||
MenuListProps={{ sx: { p: 2, "& li": { m: 0 } } }}
|
MenuListProps={{ sx: { p: 2, "& li": { m: 0 } } }}
|
||||||
sx={{ ml: theme.spacing(4) }}
|
sx={{ ml: theme.spacing(LAYOUT.XS) }}
|
||||||
>
|
>
|
||||||
{collapsed && (
|
{collapsed && (
|
||||||
<Box
|
<Box
|
||||||
|
|||||||
Reference in new issue
Block a user