mirror of
https://github.com/umami-software/umami.git
synced 2026-02-09 15:17:23 +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 useShareToken from 'hooks/useShareToken';
|
||||
|
||||
export default function SharePage({ settingsDisabled }) {
|
||||
export default function SharePage() {
|
||||
const router = useRouter();
|
||||
const { id } = router.query;
|
||||
const shareId = id?.[0];
|
||||
|
|
@ -17,16 +17,8 @@ export default function SharePage({ settingsDisabled }) {
|
|||
const { websiteId } = shareToken;
|
||||
|
||||
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