Skip to content

Commit

Permalink
feat: #4 support for react 16
Browse files Browse the repository at this point in the history
  • Loading branch information
foxhound87 committed Oct 11, 2017
1 parent f15e3cf commit 79550b1
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 26 deletions.
32 changes: 17 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,22 @@
"glamor": "2.20.18",
"lodash": "^4.16.2",
"react-dock": "^0.2.4",
"react-draggable": "2.2.3",
"react-icons": "2.2.2",
"react-json-tree": "0.9.0",
"react-tooltip": "^3.2.1"
"react-draggable": "^3.0.3",
"react-icons": "^2.2.7",
"react-json-tree": "^0.10.9",
"react-tooltip": "^3.3.1"
},
"peerDependencies": {
"mobx": "^2.5.0 || ^3.0.0",
"mobx-react": "^4.0.0",
"mobx-react": "^3.0.0 || ^4.0.0",
"mobx-react-form": "^1.x.x",
"react": "^15.3.2"
"prop-types": "^15.6.0",
"react": "^15.0.0 || ^16.0.0"
},
"devDependencies": {
"babel-cli": "6.18.0",
"babel-core": "6.21.0",
"babel-eslint": "7.1.1",
"babel-eslint": "^8.0.1",
"babel-loader": "6.2.10",
"babel-plugin-add-module-exports": "0.2.1",
"babel-plugin-lodash": "3.2.11",
Expand All @@ -81,19 +82,20 @@
"codecov": "1.0.1",
"commitizen": "2.9.2",
"cz-conventional-changelog": "1.2.0",
"eslint": "3.12.2",
"eslint-config-airbnb": "13.0.0",
"eslint-config-airbnb-base": "^11.3.2",
"eslint": "^4.8.0",
"eslint-config-airbnb": "^16.0.0",
"eslint-config-airbnb-base": "^12.0.2",
"eslint-plugin-import": "^2.7.0",
"eslint-plugin-jsx-a11y": "2.2.3",
"eslint-plugin-react": "^7.3.0",
"eslint-plugin-jsx-a11y": "^6.0.2",
"eslint-plugin-react": "^7.4.0",
"husky": "^0.12.0",
"mobx": "2.7.0",
"mobx": "^3.3.1",
"mocha": "3.2.0",
"npm-run-all": "3.1.2",
"nyc": "10.0.0",
"react": "15.4.1",
"react-dom": "15.4.1",
"prop-types": "^15.6.0",
"react": "^16.0.0",
"react-dom": "^16.0.0",
"rimraf": "2.5.4",
"semantic-release": "^7.0.2",
"webpack": "1.14.0"
Expand Down
16 changes: 9 additions & 7 deletions src/components/RenderFormData.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,18 @@ export default observer(({ store, handlers }) => (
hideRoot
data={parseFormData(store.selected.form)}
theme={store.theme}
isLightTheme={false}
invertTheme={false}
/>}
<h4 className={style.heading}>
<Icons.FaBars className={style.icon} /> Fields
</h4>
<JSONTree
hideRoot
data={parseFieldsData(store.selected.form.fields)}
theme={store.theme}
isLightTheme={false}
/>
<div className={style.container}>
<JSONTree
hideRoot
data={parseFieldsData(store.selected.form.fields)}
theme={store.theme}
invertTheme={false}
/>
</div>
</div>
));
8 changes: 4 additions & 4 deletions src/components/SelectInitialForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ export default observer(({ store, handlers }) => (
<div>
<h4>SELECT A FORM</h4>
{mapo(store.menu, (key, val) =>
(<button
// eslint-disable-next-line
<button
key={key}
value={key}
className={merge($U.button, style.btn)}
onClick={handlers.handleInitialFormSelect}
>
<Icons.FaCircleO className={style.icon} /> {val}
</button>))}
><Icons.FaCircleO className={style.icon} /> {val}
</button>)}
</div>
));
3 changes: 3 additions & 0 deletions src/styles/RenderFormData.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ import { style } from 'glamor';
import theme from './_.theme';

export default {
container: style({
marginLeft: '10px',
}),
heading: style({
color: theme.base00,
padding: '10px',
Expand Down

0 comments on commit 79550b1

Please sign in to comment.