-
-
Notifications
You must be signed in to change notification settings - Fork 252
Responsive Docs Menu API "Types and values" #799
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Responsive Docs Menu API "Types and values" #799
Conversation
src/ApiDocs.res
Outdated
module RightSidebar = { | ||
@react.component | ||
let make = (~items: array<item>) => { | ||
switch items->Js.Array2.length === 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
redundant length check, you have them as well in both places where you use <RightSidebar />
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked because I don't want to show the "Types and Values" text when it is empty.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everywhere where you use the RightSidebar component, you already ensure that the items are not empty. That's why I suggested to remove the one in RightSidebar.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh right. Removed 5062cd8
I just tested it and am not sure why you do not like it. |
@aspeddro is attempting to deploy a commit to the ReScript Association Team on Vercel. A member of the Team first needs to authorize it. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Add a submenu with a link to the value/type in each module:
I didn't really like how it turned out, so any suggestions are welcome.