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.
22 lines
523 B
JavaScript
22 lines
523 B
JavaScript
import React from 'react';
|
|
import { useRouter } from 'next/router';
|
|
import WebsiteSettings from 'components/pages/WebsiteSettings';
|
|
import useRequireLogin from 'hooks/useRequireLogin';
|
|
import Settings from 'components/pages/Settings';
|
|
|
|
export default function WebsiteSettingsPage() {
|
|
const { loading } = useRequireLogin();
|
|
const router = useRouter();
|
|
const { id } = router.query;
|
|
|
|
if (!id || loading) {
|
|
return null;
|
|
}
|
|
|
|
return (
|
|
<Settings>
|
|
<WebsiteSettings websiteId={id} />
|
|
</Settings>
|
|
);
|
|
}
|