diff --git a/src/assets/icons/forward.svg b/src/assets/icons/forward.svg
new file mode 100644
index 0000000..5ee1ea9
--- /dev/null
+++ b/src/assets/icons/forward.svg
@@ -0,0 +1,3 @@
+
diff --git a/src/pages/dashboard/ModalUser/index.tsx b/src/pages/dashboard/ModalUser/index.tsx
index cbd52f0..34cc5c5 100644
--- a/src/pages/dashboard/ModalUser/index.tsx
+++ b/src/pages/dashboard/ModalUser/index.tsx
@@ -18,12 +18,12 @@ import { TransactionsTab } from "./TransactionsTab";
import { VerificationTab } from "./VerificationTab";
import { authStore } from "@root/stores/auth";
-import theme from "@root/theme";
import userIcon from "@root/assets/icons/user.svg";
import packageIcon from "@root/assets/icons/package.svg";
import transactionsIcon from "@root/assets/icons/transactions.svg";
import checkIcon from "@root/assets/icons/check.svg";
+import forwardIcon from "@root/assets/icons/forward.svg";
import type { SyntheticEvent } from "react";
@@ -54,6 +54,7 @@ export type Verification = {
const ModalUser = () => {
const [user, setUser] = useState(null);
const [value, setValue] = useState(0);
+ const [openNavigation, setOpenNavigation] = useState(false);
const { userId } = useParams();
const { makeRequest } = authStore();
const theme = useTheme();
@@ -89,13 +90,13 @@ const ModalUser = () => {
transform: "translate(-50%, -50%)",
display: "flex",
flexDirection: "column",
- width: "100%",
+ width: mobile ? "100%" : "98vw",
maxWidth: tablet ? "920px" : "1070px",
- height: "605px",
+ height: mobile ? "100%" : "605px",
bgcolor: theme.palette.background.default,
color: theme.palette.secondary.main,
boxShadow: 24,
- borderRadius: "12px",
+ borderRadius: mobile ? "0" : "12px",
outline: "none",
overflow: "hidden",
}}
@@ -116,40 +117,72 @@ const ModalUser = () => {
-
- setValue(newValue)
- }
- aria-label="Vertical tabs example"
- sx={{ padding: "10px", width: "100%", maxWidth: "276px" }}
- TabIndicatorProps={{ style: { background: "transparent" } }}
+
- {TABS.map(({ name, icon }) => (
- }
- iconPosition="start"
- key={name}
- label={name}
- sx={{
- justifyContent: "flex-start",
- textTransform: "inherit",
- minHeight: "auto",
- fontSize: "15px",
- padding: "15px",
- marginBottom: "5px",
- color: theme.palette.common.black,
- "&.MuiButtonBase-root.Mui-selected": {
- borderRadius: "12px",
- color: "#7E2AEA",
- background: "rgba(126, 42, 234, 0.07)",
- },
+ {mobile && (
+
setOpenNavigation((isOpened) => !isOpened)}
/>
- ))}
-
+ )}
+
+ setValue(newValue)
+ }
+ aria-label="Vertical tabs example"
+ sx={{
+ padding: mobile ? "16px" : "10px",
+ width: "100%",
+ }}
+ TabIndicatorProps={{ style: { background: "transparent" } }}
+ >
+ {TABS.map(({ name, icon }) => (
+ }
+ iconPosition="start"
+ key={name}
+ label={mobile ? (openNavigation ? name : "") : name}
+ sx={{
+ justifyContent: "flex-start",
+ textTransform: "inherit",
+ minHeight: "auto",
+ minWidth: "auto",
+ fontSize: "15px",
+ padding: mobile ? "9px" : "15px",
+ marginBottom: mobile ? "15px" : "5px",
+ color: theme.palette.common.black,
+ whiteSpace: "nowrap",
+ lineHeight: "18px",
+ "&.MuiButtonBase-root.Mui-selected": {
+ borderRadius: "12px",
+ color: "#7E2AEA",
+ background: "rgba(126, 42, 234, 0.07)",
+ },
+ }}
+ />
+ ))}
+
+