Skip to content

Commit c336af5

Browse files
christianalfoniCompuIves
authored andcommitted
Fix flashing (#2921)
1 parent 943c2dd commit c336af5

File tree

1 file changed

+12
-9
lines changed
  • packages/app/src/app/pages/Sandbox

1 file changed

+12
-9
lines changed

packages/app/src/app/pages/Sandbox/index.js

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
1-
import React from 'react';
2-
import Helmet from 'react-helmet';
3-
import { Link } from 'react-router-dom';
4-
import { getSandboxName } from '@codesandbox/common/lib/utils/get-sandbox-name';
51
import { Button } from '@codesandbox/common/lib/components/Button';
62
import Centered from '@codesandbox/common/lib/components/flex/Centered';
73
import Fullscreen from '@codesandbox/common/lib/components/flex/Fullscreen';
84
import Padding from '@codesandbox/common/lib/components/spacing/Padding';
5+
import { getSandboxName } from '@codesandbox/common/lib/utils/get-sandbox-name';
96
import { inject, observer } from 'app/componentConnectors';
10-
import { Title } from 'app/components/Title';
117
import { Skeleton } from 'app/components/Skeleton';
12-
import { QuickActions } from 'app/pages/Sandbox/QuickActions';
13-
import { NotFound } from 'app/pages/common/NotFound';
14-
import { Navigation } from 'app/pages/common/Navigation';
8+
import { Title } from 'app/components/Title';
159
import { GithubIntegration } from 'app/pages/common/GithubIntegration';
10+
import { Navigation } from 'app/pages/common/Navigation';
11+
import { NotFound } from 'app/pages/common/NotFound';
12+
import { QuickActions } from 'app/pages/Sandbox/QuickActions';
13+
import React from 'react';
14+
import Helmet from 'react-helmet';
15+
import { Link } from 'react-router-dom';
16+
1617
import Editor from './Editor';
1718

1819
class SandboxPage extends React.Component {
@@ -159,7 +160,9 @@ class SandboxPage extends React.Component {
159160
}}
160161
margin={1}
161162
>
162-
<Navigation title="Sandbox Editor" />
163+
{store.editor.isLoading ? null : (
164+
<Navigation title="Sandbox Editor" />
165+
)}
163166
<Centered
164167
style={{ flex: 1, width: '100%', height: '100%' }}
165168
horizontal

0 commit comments

Comments
 (0)