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

@@ -3,7 +3,7 @@ import Layout from 'components/layout/Layout';
import RealtimeDashboard from 'components/pages/RealtimeDashboard';
import useRequireLogin from 'hooks/useRequireLogin';
export default function RealtimePage({ settingsDisabled }) {
export default function RealtimePage() {
const { loading } = useRequireLogin();
if (loading) {
@@ -11,16 +11,8 @@ export default function RealtimePage({ settingsDisabled }) {
}
return (
<Layout settingsDisabled={settingsDisabled}>
<Layout>
<RealtimeDashboard />
</Layout>
);
}
export async function getServerSideProps() {
return {
props: {
settingsDisabled: !!process.env.CLOUD_MODE,
},
};
}