B2B-31: refactor profile menu, header

This commit is contained in:
devmc-ee
2025-06-29 19:25:50 +03:00
parent a8dbc98b62
commit fbbc2f8760
14 changed files with 132 additions and 69 deletions

View File

@@ -26,6 +26,11 @@ export function ProfileAccountDropdownContainer(props: {
name: string | null;
picture_url: string | null;
};
accounts: {
label: string | null;
value: string | null;
image?: string | null;
}[]
}) {
const signOut = useSignOut();
const user = useUser(props.user);
@@ -34,7 +39,7 @@ export function ProfileAccountDropdownContainer(props: {
if (!userData) {
return null;
}
console.log(props.accounts)
return (
<PersonalAccountDropdown
className={'w-full'}
@@ -42,6 +47,7 @@ export function ProfileAccountDropdownContainer(props: {
features={features}
user={userData}
account={props.account}
accounts={props.accounts}
signOutRequested={() => signOut.mutateAsync()}
showProfileName={props.showProfileName}
/>