Skip to content

Commit 664ed38

Browse files
authored
Merge pull request #4291 from BuckleScript/snapshot_bsb
snapshot bsb changes
2 parents c9a6140 + 3a7bb13 commit 664ed38

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

jscomp/bsb/bsb_templates.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -657,6 +657,7 @@ let root = OCamlRes.Res.([
657657
// A little extra we've put, because the ReactJS example has no styling\n\
658658
let leftButtonStyle = ReactDOMRe.Style.make(~borderRadius=\"4px 0px 0px 4px\", ~width=\"48px\", ());\n\
659659
let rightButtonStyle = ReactDOMRe.Style.make(~borderRadius=\"0px 4px 4px 0px\", ~width=\"48px\", ());\n\
660+
let containerStyle = ReactDOMRe.Style.make(~display=\"flex\", ~alignItems=\"center\", ~justifyContent=\"space-between\", ());\n\
660661
\n\
661662
// Record and variant need explicit declarations.\n\
662663
type state = {count: int};\n\
@@ -679,8 +680,7 @@ let root = OCamlRes.Res.([
679680
\ let (state, dispatch) = React.useReducer(reducer, initialState);\n\
680681
\n\
681682
\ // We can use a fragment here, but we don't, because we want to style the counter\n\
682-
\ <div\n\
683-
\ style={ReactDOMRe.Style.make(~display=\"flex\", ~alignItems=\"center\", ~justifyContent=\"space-between\", ())}>\n\
683+
\ <div style=containerStyle>\n\
684684
\ <div>\n\
685685
\ {React.string(\"Count: \")}\n\
686686
\ {React.string(string_of_int(state.count))}\n\

lib/4.06.1/bsb.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14926,6 +14926,7 @@ let root = OCamlRes.Res.([
1492614926
// A little extra we've put, because the ReactJS example has no styling\n\
1492714927
let leftButtonStyle = ReactDOMRe.Style.make(~borderRadius=\"4px 0px 0px 4px\", ~width=\"48px\", ());\n\
1492814928
let rightButtonStyle = ReactDOMRe.Style.make(~borderRadius=\"0px 4px 4px 0px\", ~width=\"48px\", ());\n\
14929+
let containerStyle = ReactDOMRe.Style.make(~display=\"flex\", ~alignItems=\"center\", ~justifyContent=\"space-between\", ());\n\
1492914930
\n\
1493014931
// Record and variant need explicit declarations.\n\
1493114932
type state = {count: int};\n\
@@ -14948,8 +14949,7 @@ let root = OCamlRes.Res.([
1494814949
\ let (state, dispatch) = React.useReducer(reducer, initialState);\n\
1494914950
\n\
1495014951
\ // We can use a fragment here, but we don't, because we want to style the counter\n\
14951-
\ <div\n\
14952-
\ style={ReactDOMRe.Style.make(~display=\"flex\", ~alignItems=\"center\", ~justifyContent=\"space-between\", ())}>\n\
14952+
\ <div style=containerStyle>\n\
1495314953
\ <div>\n\
1495414954
\ {React.string(\"Count: \")}\n\
1495514955
\ {React.string(string_of_int(state.count))}\n\

lib/4.06.1/unstable/bsb_native.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15081,6 +15081,7 @@ let root = OCamlRes.Res.([
1508115081
// A little extra we've put, because the ReactJS example has no styling\n\
1508215082
let leftButtonStyle = ReactDOMRe.Style.make(~borderRadius=\"4px 0px 0px 4px\", ~width=\"48px\", ());\n\
1508315083
let rightButtonStyle = ReactDOMRe.Style.make(~borderRadius=\"0px 4px 4px 0px\", ~width=\"48px\", ());\n\
15084+
let containerStyle = ReactDOMRe.Style.make(~display=\"flex\", ~alignItems=\"center\", ~justifyContent=\"space-between\", ());\n\
1508415085
\n\
1508515086
// Record and variant need explicit declarations.\n\
1508615087
type state = {count: int};\n\
@@ -15103,8 +15104,7 @@ let root = OCamlRes.Res.([
1510315104
\ let (state, dispatch) = React.useReducer(reducer, initialState);\n\
1510415105
\n\
1510515106
\ // We can use a fragment here, but we don't, because we want to style the counter\n\
15106-
\ <div\n\
15107-
\ style={ReactDOMRe.Style.make(~display=\"flex\", ~alignItems=\"center\", ~justifyContent=\"space-between\", ())}>\n\
15107+
\ <div style=containerStyle>\n\
1510815108
\ <div>\n\
1510915109
\ {React.string(\"Count: \")}\n\
1511015110
\ {React.string(string_of_int(state.count))}\n\

0 commit comments

Comments
 (0)