mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-16 02:05:04 +01:00
e1f99a7d01
* Rewrite admin. * Clean up password forms. * Fix naming issues. * CSS Naming.
21 lines
482 B
JavaScript
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>
|
|
);
|
|
}
|