mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
More refactoring.
This commit is contained in:
parent
5f15ad0807
commit
02a1438cfe
41 changed files with 196 additions and 721 deletions
|
|
@ -5,7 +5,11 @@ import useRequireLogin from 'hooks/useRequireLogin';
|
|||
import styles from './AppLayout.module.css';
|
||||
|
||||
export default function AppLayout({ title, children }) {
|
||||
useRequireLogin();
|
||||
const { user } = useRequireLogin();
|
||||
|
||||
if (!user) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<div className={styles.layout}>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue