mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 15:47:13 +01:00
Fixed 'use client' usage.
This commit is contained in:
parent
be5592446a
commit
f7151a880e
208 changed files with 323 additions and 385 deletions
|
|
@ -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;
|
||||
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue