Teams context settings.

This commit is contained in:
Mike Cao 2024-02-02 17:49:17 -08:00
parent 4429198397
commit 8f853ddb97
77 changed files with 317 additions and 272 deletions

View file

@ -3,13 +3,13 @@ import { useLogin } from 'components/hooks';
import WebsitesDataTable from './WebsitesDataTable';
import WebsitesHeader from './WebsitesHeader';
export default function Websites() {
export default function Websites({ teamId }: { teamId: string }) {
const { user } = useLogin();
return (
<>
<WebsitesHeader showActions={user.role !== 'view-only'} />
<WebsitesDataTable userId={user.id} />
<WebsitesDataTable teamId={teamId} userId={user.id} allowEdit={true} />
</>
);
}