-
+
{tablet_match && (
@@ -172,7 +192,9 @@ const Navigation = ({ onClose }: NavigationProps) => {
- {links}
+
+ {links}
+
@@ -180,9 +202,10 @@ const Navigation = ({ onClose }: NavigationProps) => {
email={UserProfileData.email}
image={UserProfileData.avatar}
name={UserProfileData.name}
+ showText={sidebarState !== 'mini'}
/>
-
+
);
};
diff --git a/components/UserButton/UserButton.tsx b/components/UserButton/UserButton.tsx
index e075dc5..d27de10 100644
--- a/components/UserButton/UserButton.tsx
+++ b/components/UserButton/UserButton.tsx
@@ -1,4 +1,5 @@
import { ReactNode } from 'react';
+
import {
Avatar,
Group,
@@ -7,6 +8,7 @@ import {
UnstyledButtonProps,
} from '@mantine/core';
import { IconChevronRight } from '@tabler/icons-react';
+
import classes from './UserButton.module.css';
type UserProfileButtonProps = {
@@ -15,6 +17,7 @@ type UserProfileButtonProps = {
email: string;
icon?: ReactNode;
asAction?: boolean;
+ showText?: boolean;
} & UnstyledButtonProps;
const UserProfileButton = ({
@@ -23,6 +26,7 @@ const UserProfileButton = ({
email,
icon,
asAction,
+ showText = true,
...others
}: UserProfileButtonProps) => {
return (
@@ -30,13 +34,15 @@ const UserProfileButton = ({