mirror of
https://github.com/umami-software/umami.git
synced 2026-02-19 12:05:41 +01:00
Moved env checks to server pages.
This commit is contained in:
parent
5b6292dd11
commit
784677e180
7 changed files with 18 additions and 18 deletions
|
|
@ -1,15 +1,8 @@
|
|||
'use client';
|
||||
import { useConfig } from '@/components/hooks';
|
||||
import LoginForm from './LoginForm';
|
||||
import styles from './LoginPage.module.css';
|
||||
|
||||
export function LoginPage() {
|
||||
const config = useConfig();
|
||||
|
||||
if (config?.loginDisabled) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<div className={styles.page}>
|
||||
<LoginForm />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue