New admin section.
This commit is contained in:
15
src/app/(main)/admin/users/[userId]/UserWebsites.tsx
Normal file
15
src/app/(main)/admin/users/[userId]/UserWebsites.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import { DataGrid } from '@/components/common/DataGrid';
|
||||
import { useWebsitesQuery } from '@/components/hooks';
|
||||
import { WebsitesTable } from '@/app/(main)/settings/websites/WebsitesTable';
|
||||
|
||||
export function UserWebsites({ userId }) {
|
||||
const queryResult = useWebsitesQuery({ userId });
|
||||
|
||||
return (
|
||||
<DataGrid queryResult={queryResult}>
|
||||
{({ data }) => (
|
||||
<WebsitesTable data={data} showActions={true} allowEdit={true} allowView={true} />
|
||||
)}
|
||||
</DataGrid>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user