mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 23:57:12 +01:00
checkpoint
This commit is contained in:
parent
db1ae3f2c7
commit
9e8748e2f3
14 changed files with 24 additions and 101 deletions
|
|
@ -4,7 +4,7 @@ import Layout from 'components/layout/Layout';
|
|||
import WebsiteDetails from 'components/pages/WebsiteDetails';
|
||||
import useRequireLogin from 'hooks/useRequireLogin';
|
||||
|
||||
export default function DetailsPage({ settingsDisabled }) {
|
||||
export default function DetailsPage() {
|
||||
const { loading } = useRequireLogin();
|
||||
const router = useRouter();
|
||||
const { id } = router.query;
|
||||
|
|
@ -16,16 +16,8 @@ export default function DetailsPage({ settingsDisabled }) {
|
|||
const [websiteId] = id;
|
||||
|
||||
return (
|
||||
<Layout settingsDisabled={settingsDisabled}>
|
||||
<Layout>
|
||||
<WebsiteDetails websiteId={websiteId} />
|
||||
</Layout>
|
||||
);
|
||||
}
|
||||
|
||||
export async function getServerSideProps() {
|
||||
return {
|
||||
props: {
|
||||
settingsDisabled: !!process.env.CLOUD_MODE,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue