Fixed 'use client' usage.

This commit is contained in:
Mike Cao 2024-02-05 23:59:33 -08:00
parent be5592446a
commit f7151a880e
208 changed files with 323 additions and 385 deletions

View file

@ -0,0 +1,6 @@
'use client';
import TestConsole from './TestConsole';
export default function ConsolePage({ websiteId }) {
return <TestConsole websiteId={websiteId} />;
}

View file

@ -1,6 +1,7 @@
.container {
display: grid;
gap: 30px;
padding-bottom: 40px;
}
.actions {

View file

@ -1,4 +1,3 @@
'use client';
import { Button } from 'react-basics';
import Head from 'next/head';
import Link from 'next/link';

View file

@ -1,5 +1,5 @@
import TestConsole from '../TestConsole';
import { Metadata } from 'next';
import ConsolePage from '../ConsolePage';
async function getEnabled() {
return !!process.env.ENABLE_TEST_CONSOLE;
@ -12,7 +12,7 @@ export default async function ({ params: { websiteId } }) {
return null;
}
return <TestConsole websiteId={websiteId?.[0]} />;
return <ConsolePage websiteId={websiteId?.[0]} />;
}
export const metadata: Metadata = {