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

@@ -2,9 +2,9 @@ import React from 'react';
import Layout from 'components/layout/Layout';
import { FormattedMessage } from 'react-intl';
export default function Custom404({ settingsDisabled }) {
export default function Custom404() {
return (
<Layout settingsDisabled={settingsDisabled}>
<Layout>
<div className="row justify-content-center">
<h1>
<FormattedMessage id="message.page-not-found" defaultMessage="Page not found" />
@@ -13,11 +13,3 @@ export default function Custom404({ settingsDisabled }) {
</Layout>
);
}
export async function getServerSideProps() {
return {
props: {
settingsDisabled: !!process.env.CLOUD_MODE,
},
};
}