mirror of
https://github.com/umami-software/umami.git
synced 2026-02-15 10:05:36 +01:00
Fixed 'use client' usage.
This commit is contained in:
parent
be5592446a
commit
f7151a880e
208 changed files with 323 additions and 385 deletions
|
|
@ -1,23 +1,7 @@
|
|||
import LoginForm from './LoginForm';
|
||||
import { Metadata } from 'next';
|
||||
import styles from './page.module.css';
|
||||
|
||||
async function getDisabled() {
|
||||
return !!process.env.LOGIN_DISABLED;
|
||||
}
|
||||
|
||||
export default async function LoginPage() {
|
||||
const disabled = await getDisabled();
|
||||
|
||||
if (disabled) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<div className={styles.page}>
|
||||
<LoginForm />
|
||||
</div>
|
||||
);
|
||||
return <LoginPage />;
|
||||
}
|
||||
|
||||
export const metadata: Metadata = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue