Fixed 'use client' usage.
This commit is contained in:
15
src/app/(main)/settings/websites/WebsitesPage.tsx
Normal file
15
src/app/(main)/settings/websites/WebsitesPage.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
'use client';
|
||||
import { useLogin } from 'components/hooks';
|
||||
import WebsitesDataTable from './WebsitesDataTable';
|
||||
import WebsitesHeader from './WebsitesHeader';
|
||||
|
||||
export default function WebsitesPage({ teamId }: { teamId: string }) {
|
||||
const { user } = useLogin();
|
||||
|
||||
return (
|
||||
<>
|
||||
<WebsitesHeader teamId={teamId} allowCreate={user.role !== 'view-only'} />
|
||||
<WebsitesDataTable teamId={teamId} userId={user.id} allowEdit={true} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user