Converted user and website settings.

This commit is contained in:
Mike Cao 2025-02-21 16:55:05 -08:00
parent 4c24e54fdd
commit b5c6194f36
59 changed files with 363 additions and 554 deletions

View file

@ -1,6 +1,6 @@
import { useWebsiteEvents } from '@/components/hooks';
import { EventsTable } from './EventsTable';
import { DataTable } from '@/components/common/DataTable';
import { DataGrid } from '@/components/common/DataGrid';
import { ReactNode } from 'react';
export function EventsDataTable({
@ -13,8 +13,8 @@ export function EventsDataTable({
const queryResult = useWebsiteEvents(websiteId);
return (
<DataTable queryResult={queryResult} allowSearch={true} autoFocus={false}>
<DataGrid queryResult={queryResult} allowSearch={true} autoFocus={false}>
{({ data }) => <EventsTable data={data} />}
</DataTable>
</DataGrid>
);
}

View file

@ -1,7 +1,7 @@
import { Metadata } from 'next';
import { EventsPage } from './EventsPage';
export default async function ({ params }: { params: { websiteId: string } }) {
export default async function ({ params }: { params: Promise<{ websiteId: string }> }) {
const { websiteId } = await params;
return <EventsPage websiteId={websiteId} />;