Skip to content

Commit

Permalink
tweak formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
rusty-key committed Mar 26, 2024
1 parent f29b23b commit 1d75b0e
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/ReshowcaseUi.re
Original file line number Diff line number Diff line change
Expand Up @@ -1066,18 +1066,16 @@ module App = {
let demoUnit = Demos.findDemo(urlSearchParams, demoName, demos);
<div style=Styles.main>
{demoUnit
->(Option.map(demoUnit => <DemoUnit demoUnit />))
->(Option.getWithDefault("Demo not found"->React.string))}
->Option.map(demoUnit => <DemoUnit demoUnit />)
->Option.getWithDefault("Demo not found"->React.string)}
</div>;
| Demo(demoName) =>
let demoUnit =
Demos.findDemo(urlSearchParams, demoName, demos)
->(
Option.map(demoUnit =>
<DemoUnit demoUnit key={url.search} ?sidebarElem />
)
->Option.map(demoUnit =>
<DemoUnit demoUnit key={url.search} ?sidebarElem />
)
->(Option.getWithDefault("Demo not found"->React.string));
->Option.getWithDefault("Demo not found"->React.string);
<div name="Content" style=Styles.right>
<TopPanel
isSidebarHidden={!showRightSidebar}
Expand Down

0 comments on commit 1d75b0e

Please sign in to comment.