Updated login check method.

This commit is contained in:
Mike Cao 2023-01-04 21:20:24 -08:00
parent 170b30b391
commit 796c65fa29
10 changed files with 45 additions and 40 deletions

View file

@ -1,11 +1,10 @@
import Settings from 'components/pages/Settings';
import useConfig from 'hooks/useConfig';
import useUser from 'hooks/useUser';
import useRequireLogin from 'hooks/useRequireLogin';
import WebsitesList from 'components/pages/WebsitesList';
export default function WebsitesPage() {
const user = useUser();
const { user } = useRequireLogin();
const { adminDisabled } = useConfig();
if (adminDisabled || !user) {