Skip to content

Commit

Permalink
Merge pull request #58 from MarcelCutts/upgrade_bs_and_reasonreact
Browse files Browse the repository at this point in the history
Upgrade BuckleScript and ReasonReact
  • Loading branch information
fakenickels authored Sep 5, 2018
2 parents a356224 + fddb0f0 commit f7614d4
Show file tree
Hide file tree
Showing 4 changed files with 167 additions and 1,172 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
"author": "Gabriel R. Abreu <[email protected]>",
"license": "MIT",
"peerDependencies": {
"bs-platform": "^2.2.3",
"reason-react": "^0.3.4"
"bs-platform": "^4.0.5",
"reason-react": "^0.5.3"
},
"devDependencies": {
"bs-platform": "^2.2.3",
"bs-platform": "^4.0.5",
"lint-staged": "^7.0.0",
"pre-commit": "^1.2.2",
"reason-react": "^0.3.4"
"reason-react": "^0.5.3"
},
"lint-staged": {
"*.re": [
Expand Down
7 changes: 2 additions & 5 deletions re/ReForm_Helpers.re
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
let handleDomFormChange = (handleChange, event) =>
handleChange(
ReactDOMRe.domElementToObj(ReactEventRe.Form.target(event))##value
);
handleChange(ReactEvent.Form.target(event)##value);
let handleDomFormSubmit = (handleSubmit, event) => {
ReactEventRe.Synthetic.preventDefault(event);
ReactEvent.Synthetic.preventDefault(event);
handleSubmit();
};

4 changes: 2 additions & 2 deletions re/ReForm_Helpers.rei
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
let handleDomFormChange: (('a) => 'b, ReactEventRe.Form.t) => 'b;
let handleDomFormSubmit: ((unit) => 'a, ReactEventRe.synthetic('b)) => 'a;
let handleDomFormChange: ('a => 'b, ReactEvent.Form.t) => 'b;
let handleDomFormSubmit: (unit => 'a, ReactEvent.synthetic('b)) => 'a;
Loading

0 comments on commit f7614d4

Please sign in to comment.