mirror of
https://github.com/umami-software/umami.git
synced 2026-02-19 20:15:41 +01:00
Converted variables to be runtime.
This commit is contained in:
parent
b6862de2be
commit
5b6292dd11
11 changed files with 46 additions and 36 deletions
|
|
@ -1,9 +1,12 @@
|
|||
'use client';
|
||||
import { useConfig } from '@/components/hooks';
|
||||
import LoginForm from './LoginForm';
|
||||
import styles from './LoginPage.module.css';
|
||||
|
||||
export function LoginPage() {
|
||||
if (process.env.disableLogin) {
|
||||
const config = useConfig();
|
||||
|
||||
if (config?.loginDisabled) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue