Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
fix(component): remove styles from component area
Browse files Browse the repository at this point in the history
  • Loading branch information
Lasse Küchler committed Dec 11, 2017
1 parent 255ada4 commit b380180
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
3 changes: 3 additions & 0 deletions src/component/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ const PatternsPane = styledComponents.div`

const PreviewPane = styledComponents.div`
flex: 2 0 0px;
border-radius: 10px;
box-shadow: 0 2px 10px 0 rgba(0,0,0,.13);
overflow: hidden;
`;

interface AppProps {
Expand Down
16 changes: 3 additions & 13 deletions src/component/preview.tsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,12 @@
import { ipcRenderer } from 'electron';
import { JsonObject } from '../store/json';
import Layout from '../lsg/patterns/layout';
import { observer } from 'mobx-react';
import DevTools from 'mobx-react-devtools';
import { Page } from '../store/page';
import { Preview } from './presentation/preview';
import * as React from 'react';
import * as ReactDom from 'react-dom';
import { Store } from '../store';
import styledComponents from 'styled-components';

const PreviewPane = styledComponents.div`
flex: 2 0 0px;
padding: 10px;
box-shadow: inset 0 0 10px 0 rgba(0,0,0,.25);
`;

interface PreviewAppProps {
store: Store;
Expand All @@ -32,12 +24,10 @@ class PreviewApp extends React.Component<PreviewAppProps, PreviewAppState> {

public render(): JSX.Element {
return (
<Layout>
<PreviewPane>
<Preview page={this.props.store.getCurrentPage()} />
</PreviewPane>
<div>
<Preview page={this.props.store.getCurrentPage()} />
<DevTools />
</Layout>
</div>
);
}
}
Expand Down

0 comments on commit b380180

Please sign in to comment.