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

@ -5,7 +5,7 @@ import { useApi } from 'components/hooks';
import { setUser } from 'store/app';
import { removeClientAuthToken } from 'lib/client';
export function Logout() {
export function LogoutPage() {
const disabled = !!(process.env.disableLogin || process.env.cloudMode);
const router = useRouter();
const { post } = useApi();
@ -29,4 +29,4 @@ export function Logout() {
return null;
}
export default Logout;
export default LogoutPage;

View file

@ -1,8 +1,8 @@
import Logout from './Logout';
import LogoutPage from './LogoutPage';
import { Metadata } from 'next';
export default function () {
return <Logout />;
return <LogoutPage />;
}
export const metadata: Metadata = {