Fix: add application_role to account-related fields (#48)

* Fix: fix accounts view, menu

* add migration

* add application_role to account-related fields
This commit is contained in:
Helena
2025-08-14 11:40:53 +03:00
committed by GitHub
parent bbb5e83ed9
commit b4b75438d2
9 changed files with 146 additions and 33 deletions

View File

@@ -1,5 +1,6 @@
import type { User } from '@supabase/supabase-js';
import { ApplicationRole } from '@kit/accounts/types/accounts';
import {
Sidebar,
SidebarContent,
@@ -18,6 +19,7 @@ type AccountModel = {
label: string | null;
value: string | null;
image: string | null;
application_role: ApplicationRole | null;
};
export function TeamAccountLayoutSidebar(props: {
@@ -73,7 +75,10 @@ function SidebarContainer(props: {
<SidebarFooter>
<SidebarContent>
<ProfileAccountDropdownContainer user={props.user} />
<ProfileAccountDropdownContainer
user={props.user}
accounts={accounts}
/>
</SidebarContent>
</SidebarFooter>
</Sidebar>