Skip to content

Commit b1a186c

Browse files
Remove warn banner
1 parent 9948765 commit b1a186c

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

src/layouts/ReactDocsLayout.res

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -50,36 +50,6 @@ module Latest = {
5050
let title = "rescript-react"
5151
let version = "latest"
5252

53-
// TODO: Remove this once the work on the v11 milestone is completed.
54-
// https://github.com/rescript-association/rescript-lang.org/milestone/6
55-
let warnBanner = {
56-
open Markdown
57-
58-
let v011Url =
59-
"/" ++ (Array.join(url.base, "/") ++ ("/v0.11.0/" ++ Array.join(url.pagepath, "/")))
60-
61-
let label = switch Array.find(Constants.allReactVersions, ((v, _)) => {
62-
v === version
63-
}) {
64-
| Some((_, label)) => label
65-
| None => version
66-
}
67-
68-
<div className="mb-10">
69-
<Warn>
70-
<P>
71-
{React.string(
72-
"You are currently looking at the " ++
73-
(label ++
74-
" docs, which are still a work in progress. If you miss anything, you may find it in the older v0.11.0 docs "),
75-
)}
76-
<A href=v011Url> {React.string("here")} </A>
77-
{React.string(".")}
78-
</P>
79-
</Warn>
80-
</div>
81-
}
82-
8353
<LatestLayout
8454
theme=#Reason
8555
components
@@ -89,7 +59,6 @@ module Latest = {
8959
title
9060
breadcrumbs
9161
?frontmatter>
92-
warnBanner
9362
children
9463
</LatestLayout>
9564
}

0 commit comments

Comments
 (0)