mirror of
https://github.com/filecoin-project/slate.git
synced 2024-11-27 10:52:41 +03:00
cleanup: catches edge case, removes globe from home scene
This commit is contained in:
parent
60feda9fbb
commit
820ff8026d
@ -27,6 +27,10 @@ export const getServerSideProps = async (context) => {
|
||||
|
||||
export default class SlatePage extends React.Component {
|
||||
componentDidMount() {
|
||||
if (!this.props.slate) {
|
||||
return null;
|
||||
}
|
||||
|
||||
System.dispatchCustomEvent({
|
||||
name: "slate-global-create-carousel",
|
||||
detail: {
|
||||
@ -64,6 +68,7 @@ export default class SlatePage extends React.Component {
|
||||
>
|
||||
<div css={STYLES_ROOT}>
|
||||
<System.H1>404</System.H1>
|
||||
<br />
|
||||
<System.P>
|
||||
This slate is not found.
|
||||
<br />
|
||||
|
@ -7,7 +7,6 @@ import * as Data from "~/common/data";
|
||||
|
||||
import { css } from "@emotion/react";
|
||||
|
||||
import GLRenderer from "~/components/three/GLRenderer";
|
||||
import Section from "~/components/core/Section";
|
||||
import ScenePage from "~/components/core/ScenePage";
|
||||
|
||||
@ -151,7 +150,6 @@ export default class SceneHome extends React.Component {
|
||||
|
||||
return (
|
||||
<ScenePage>
|
||||
<GLRenderer width={1200} height={480} />
|
||||
<Section
|
||||
title="Slates"
|
||||
buttons={slateButtons}
|
||||
|
Loading…
Reference in New Issue
Block a user