mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 09:45:04 +01:00
e1f99a7d01
* Rewrite admin. * Clean up password forms. * Fix naming issues. * CSS Naming.
24 lines
550 B
JavaScript
24 lines
550 B
JavaScript
import Layout from 'components/layout/Layout';
|
|
import Menu from 'components/nav/Nav';
|
|
import useRequireLogin from 'hooks/useRequireLogin';
|
|
import styles from './Settings.module.css';
|
|
|
|
export default function Settings({ children }) {
|
|
const { user: loggedIn } = useRequireLogin();
|
|
|
|
if (!loggedIn) {
|
|
return null;
|
|
}
|
|
|
|
return (
|
|
<Layout>
|
|
<div className={styles.dashboard}>
|
|
<div className={styles.nav}>
|
|
<Menu />
|
|
</div>
|
|
<div className={styles.content}>{children}</div>
|
|
</div>
|
|
</Layout>
|
|
);
|
|
}
|