Sidebar: make it possible to set the sidebar as collapsed (#72)

* Sidebar: make it possible to set the sidebar as collapsed
This commit is contained in:
Giancarlo Buomprisco
2024-10-14 11:31:18 +02:00
committed by GitHub
parent d137df2675
commit b2c27eb25b
19 changed files with 221 additions and 100 deletions

View File

@@ -18,7 +18,6 @@ const features = {
};
export function ProfileAccountDropdownContainer(props: {
collapsed: boolean;
user: User;
account?: {
@@ -32,16 +31,13 @@ export function ProfileAccountDropdownContainer(props: {
const userData = user.data as User;
return (
<div className={props.collapsed ? '' : 'w-full'}>
<PersonalAccountDropdown
className={'w-full'}
paths={paths}
features={features}
showProfileName={!props.collapsed}
user={userData}
account={props.account}
signOutRequested={() => signOut.mutateAsync()}
/>
</div>
<PersonalAccountDropdown
className={'w-full'}
paths={paths}
features={features}
user={userData}
account={props.account}
signOutRequested={() => signOut.mutateAsync()}
/>
);
}