mirror of
https://github.com/umami-software/umami.git
synced 2026-02-20 20:45:39 +01:00
Rewrite admin.
This commit is contained in:
parent
f4db04c3c6
commit
6cf6a97b4d
114 changed files with 2174 additions and 1820 deletions
|
|
@ -1,20 +0,0 @@
|
|||
import React from 'react';
|
||||
import Layout from 'components/layout/Layout';
|
||||
import Settings from 'components/pages/Settings';
|
||||
import useRequireLogin from 'hooks/useRequireLogin';
|
||||
import useConfig from 'hooks/useConfig';
|
||||
|
||||
export default function SettingsPage() {
|
||||
const { loading } = useRequireLogin();
|
||||
const { adminDisabled } = useConfig();
|
||||
|
||||
if (adminDisabled || loading) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<Layout>
|
||||
<Settings />
|
||||
</Layout>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue