We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee9d495 commit 8c3ae89Copy full SHA for 8c3ae89
src/common/App.res
@@ -54,7 +54,8 @@ let make = (props: props): React.element => {
54
// landing page
55
| {base: [], pagepath: []} => <LandingPageLayout> content </LandingPageLayout>
56
// docs routes
57
- | {base: ["docs", "manual"], pagepath} => // check if it's an api route
+ | {base: ["docs", "manual"], pagepath} =>
58
+ // check if it's an api route
59
switch pagepath[0] {
60
| Some("api") =>
61
switch url->Url.getVersionString {
@@ -121,7 +122,8 @@ let make = (props: props): React.element => {
121
122
}
123
124
- | {base: ["docs", "react"], version} => switch version {
125
+ | {base: ["docs", "react"], version} =>
126
+ switch version {
127
| Latest =>
128
<ReactDocsLayout.Latest frontmatter={component->frontmatter}>
129
content
0 commit comments