Skip to content

Commit

Permalink
Make ShapeOption a child of ShapeBar
Browse files Browse the repository at this point in the history
  • Loading branch information
carterjbastian committed Mar 1, 2017
1 parent dad4a5b commit 48332b8
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
12 changes: 9 additions & 3 deletions app/components/ShapeBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,19 @@ import React, { Component } from 'react';
var ReactDOM = require('react-dom');
var electron = require('electron');

// const {Raphael,Paper,Set,Circle,Ellipse,Image,Rect,Text,Path,Line} = require('react-raphael');
import ShapeOption from './ShapeOption';

export default class Canvas extends Component {
export default class ShapeBar extends Component {

render() {
return (
<div style={{position: 'absolute', backgroundColor: 'red', width: '100%', height: '10%', margin: 0, padding: 0}}>
<div></div>
<ShapeOption />
<ShapeOption />
<ShapeOption />
<ShapeOption />
<ShapeOption />
<ShapeOption />
</div>);
}
}
15 changes: 15 additions & 0 deletions app/components/ShapeOption.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// @flow
import React, { Component } from 'react';
var ReactDOM = require('react-dom');
var electron = require('electron');

const {Raphael,Paper,Set,Circle,Ellipse,Image,Rect,Text,Path,Line} = require('react-raphael');

export default class Canvas extends Component {
render() {
return (
<div style={{position: 'relative', float: 'left', backgroundColor: 'grey', width: '10%', height: '90%', marginLeft: '5%', marginTop: '0.5%'}}>
<div></div>
</div>);
}
}
1 change: 0 additions & 1 deletion app/containers/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export default class App extends Component {
super(props);
};


render() {
return (
<div style={{position: 'absolute', backgroundColor: 'green', width: '100%', height: '100%', margin: 0, padding: 0}}>
Expand Down

0 comments on commit 48332b8

Please sign in to comment.