umami/pages/websites/index.js
Brian Cao e1f99a7d01
Rewrite admin. (#1713)
* Rewrite admin.

* Clean up password forms.

* Fix naming issues.

* CSS Naming.
2022-12-26 16:57:59 -08:00

21 lines
482 B
JavaScript

import Settings from 'components/pages/Settings';
import useConfig from 'hooks/useConfig';
import useRequireLogin from 'hooks/useRequireLogin';
import React from 'react';
import WebsitesList from 'components/pages/WebsitesList';
export default function WebsitesPage() {
const { loading } = useRequireLogin();
const { adminDisabled } = useConfig();
if (adminDisabled || loading) {
return null;
}
return (
<Settings>
<WebsitesList />
</Settings>
);
}