Refactored settings components.

This commit is contained in:
Mike Cao 2023-01-09 23:59:26 -08:00
parent d827b79c72
commit 7450b76e6d
91 changed files with 736 additions and 353 deletions

View file

@ -1,20 +0,0 @@
import Settings from 'components/pages/Settings';
import useConfig from 'hooks/useConfig';
import useUser from 'hooks/useUser';
import UsersList from 'components/pages/UsersList';
export default function UsersPage() {
const user = useUser();
const { adminDisabled } = useConfig();
if (adminDisabled || !user) {
return null;
}
return (
<Settings>
<UsersList />
</Settings>
);
}