Rewrite admin. (#1713)
* Rewrite admin. * Clean up password forms. * Fix naming issues. * CSS Naming.
This commit is contained in:
20
pages/users/index.js
Normal file
20
pages/users/index.js
Normal file
@@ -0,0 +1,20 @@
|
||||
import Settings from 'components/pages/Settings';
|
||||
import useConfig from 'hooks/useConfig';
|
||||
import useRequireLogin from 'hooks/useRequireLogin';
|
||||
import React from 'react';
|
||||
import UsersList from 'components/pages/UsersList';
|
||||
|
||||
export default function UsersPage() {
|
||||
const { loading } = useRequireLogin();
|
||||
const { adminDisabled } = useConfig();
|
||||
|
||||
if (adminDisabled || loading) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<Settings>
|
||||
<UsersList />
|
||||
</Settings>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user