checkpoint

This commit is contained in:
Brian Cao 2022-10-12 16:29:44 -07:00
parent db1ae3f2c7
commit 9e8748e2f3
14 changed files with 24 additions and 101 deletions

View file

@ -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,
},
};
}