B2B-31: refactor profile menu, header
This commit is contained in:
@@ -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}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user