Skip to content

Commit 14aef79

Browse files
committed
inline component
1 parent e442bb0 commit 14aef79

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/ApiDocs.res

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,14 +341,15 @@ let default = (props: props) => {
341341

342342
let rightSidebar = switch props {
343343
| Ok({module_: {items}}) if Js.Array2.length(items) > 0 =>
344-
let rightSidebar = <RightSidebar items />
345344
<div className="hidden xl:block lg:w-1/5 md:h-auto md:relative overflow-y-visible bg-white">
346345
<aside
347346
className="relative top-0 pl-4 w-full block md:top-16 md:pt-16 md:sticky border-l border-gray-20 overflow-y-auto pb-24 h-[calc(100vh-4.5rem)]">
348347
<div className="hl-overline block text-gray-80 mt-16 mb-2">
349348
{"Types and values"->React.string}
350349
</div>
351-
<ul> {rightSidebar} </ul>
350+
<ul>
351+
<RightSidebar items />
352+
</ul>
352353
</aside>
353354
</div>
354355
| _ => React.null

0 commit comments

Comments
 (0)