Skip to content

Commit aae07eb

Browse files
Fix isActive for TS chapter
1 parent 0d24d05 commit aae07eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Navigation.res

+2-2
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ module DocsSection = {
169169
href: `/docs/manual/${version}/introduction`,
170170
isActive: url => {
171171
switch url.fullpath {
172-
| ["docs", "manual", _, fragment] => !(fragment->Js.String2.startsWith("gentype"))
172+
| ["docs", "manual", _, fragment] => fragment !== "typescript-integration"
173173
| _ => false
174174
}
175175
},
@@ -193,7 +193,7 @@ module DocsSection = {
193193
href: "/docs/manual/latest/typescript-integration",
194194
isActive: url => {
195195
switch url.fullpath {
196-
| ["docs", "manual", _, fragment] => fragment->Js.String2.startsWith("gentype")
196+
| ["docs", "manual", _, "typescript-integration"] => true
197197
| _ => false
198198
}
199199
},

0 commit comments

Comments
 (0)