B2B-30: adds personal code to account, company admins invites members
This commit is contained in:
@@ -4,7 +4,7 @@ import { cookies } from 'next/headers';
|
||||
|
||||
import { z } from 'zod';
|
||||
|
||||
import { TeamAccountWorkspaceContextProvider } from '@kit/team-accounts/components';
|
||||
import { CompanyGuard, TeamAccountWorkspaceContextProvider } from '@kit/team-accounts/components';
|
||||
import { Page, PageMobileNavigation, PageNavigation } from '@kit/ui/page';
|
||||
import { SidebarProvider } from '@kit/ui/shadcn-sidebar';
|
||||
|
||||
@@ -144,4 +144,4 @@ async function getLayoutState(account: string) {
|
||||
};
|
||||
}
|
||||
|
||||
export default withI18n(TeamWorkspaceLayout);
|
||||
export default withI18n(CompanyGuard(TeamWorkspaceLayout));
|
||||
|
||||
@@ -9,6 +9,7 @@ import { withI18n } from '~/lib/i18n/with-i18n';
|
||||
|
||||
import { DashboardDemo } from './_components/dashboard-demo';
|
||||
import { TeamAccountLayoutPageHeader } from './_components/team-account-layout-page-header';
|
||||
import { CompanyGuard } from '@/packages/features/team-accounts/src/components';
|
||||
|
||||
interface TeamAccountHomePageProps {
|
||||
params: Promise<{ account: string }>;
|
||||
@@ -41,4 +42,4 @@ function TeamAccountHomePage({ params }: TeamAccountHomePageProps) {
|
||||
);
|
||||
}
|
||||
|
||||
export default withI18n(TeamAccountHomePage);
|
||||
export default withI18n(CompanyGuard(TeamAccountHomePage));
|
||||
|
||||
Reference in New Issue
Block a user