Don't import scratch-gui internals

This commit is contained in:
Christopher Willis-Ford 2018-11-08 15:05:19 -08:00
parent 4767897f4b
commit 046c6188f9
2 changed files with 16 additions and 3 deletions

12
src/renderer/app.css Normal file
View file

@ -0,0 +1,12 @@
/* Adapted from scratch-gui/src/playground/index.css */
html,
body,
.app {
width: 100%;
height: 100%;
margin: 0;
/* Setting min height/width makes the UI scroll below those sizes */
min-width: 1024px;
min-height: 640px; /* Min height to fit sprite/backdrop button */
}

View file

@ -1,12 +1,13 @@
import React from 'react';
import ReactDOM from 'react-dom';
import GUI, {AppStateHOC} from 'scratch-gui';
import {defaultProjectId} from 'scratch-gui/src/reducers/project-state';
import styles from 'scratch-gui/src/playground/index.css';
import ElectronStorageHelper from '../common/ElectronStorageHelper';
import styles from './app.css';
const defaultProjectId = 0;
// Register "base" page view
// analytics.pageview('/');