Skip to content

Commit

Permalink
playground: get changes from melange
Browse files Browse the repository at this point in the history
  • Loading branch information
jchavarri committed Aug 15, 2023
1 parent 242d7ac commit 064788a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
10 changes: 5 additions & 5 deletions documentation-site.opam
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ depends: [
"ocaml" {>= "4.14.0" & < "5.0.0"}
"dune" {>= "3.8.0" & < "4.0.0"}
"reason-react" {dev}
"reason-react-ppx" {dev}
"reactjs-jsx-ppx" {dev}
"ocamlformat"
"js_of_ocaml"
"reason" {dev}
Expand All @@ -27,10 +27,10 @@ depends: [
]
dev-repo: "git+https://github.com/melange-re/melange-re.github.io.git"
pin-depends: [
[ "melange.dev" "git+https://github.com/melange-re/melange.git#c6dfaff84c605b06ce27ce39a4b8c1a492b86d22" ]
[ "reason-react.dev" "git+https://github.com/reasonml/reason-react.git#9e70d7548918816f1c0d8be8bdc66b6deabd339a" ]
[ "reason-react-ppx.dev" "git+https://github.com/reasonml/reason-react.git#9e70d7548918816f1c0d8be8bdc66b6deabd339a" ]
[ "melange-playground.dev" "git+https://github.com/melange-re/melange.git#c6dfaff84c605b06ce27ce39a4b8c1a492b86d22" ]
[ "melange.dev" "git+https://github.com/melange-re/melange.git#22d1670aa29b8f594491ed3012ca6b50016d40bd" ]
[ "reactjs-jsx-ppx.dev" "git+https://github.com/melange-re/melange.git#22d1670aa29b8f594491ed3012ca6b50016d40bd" ]
[ "melange-playground.dev" "git+https://github.com/melange-re/melange.git#22d1670aa29b8f594491ed3012ca6b50016d40bd" ]
[ "reason-react.dev" "git+https://github.com/reasonml/reason-react.git#dbc2f61f6626de47dd607609f13a678ecd59e462" ]
[ "cmarkit.dev" "git+https://github.com/dbuenzli/cmarkit.git#f37c8ea86fd0be8dba7a8babcee3682e0e047d91" ]
[ "reason.dev" "git+https://github.com/reasonml/reason.git#95485d5c4527641903d9bec81e80aa3c5dfb3d30"]
]
Expand Down
8 changes: 5 additions & 3 deletions playground/src/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@ function Sidebar({ onExampleClick }) {
<span className="Text-xs">{"Reason"}</span>
<span className="Text-xs Number">{"v3.9.0"}</span>
</span>
<span className="Version">
<span className="Text-xs">{"ReasonReact"}</span>
<span className="Text-xs Number">{"v0.11.0"}</span>
</span>
</div>
</div>) : null}
</div>
Expand Down Expand Up @@ -356,8 +360,6 @@ const formatReason = (code) => {
}

function OutputEditor({ language, value }) {
const [debouncedValue] = useDebounce(value, 500);

return (
<div className="Editor">
<Editor
Expand All @@ -370,7 +372,7 @@ function OutputEditor({ language, value }) {
}}
height="100%"
language={language}
value={debouncedValue}
value={value}
/>
</div>
)
Expand Down

0 comments on commit 064788a

Please sign in to comment.