-
Notifications
You must be signed in to change notification settings - Fork 2
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
💄 Added icons next to sidebar titles #115
Conversation
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.
One small thing, otherwise LGTM
lib/components/MegaIcon/MegaIcon.tsx
Outdated
@@ -22,12 +23,14 @@ export interface MegaIconProps { | |||
// TODO: implement below intended solution extends React.ComponentPropsWithoutRef<"span"> { | |||
iconImg?: string; | |||
icon?: AvailableIcons; | |||
imgSize?: "small" | "medium"; |
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 would also move this into the constants if we're designing things like that.
ex. ICON_IMAGE_SIZE_OPTIONS = ["small", "medium"]
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.
Done - I moved icon sizes into it's own separate type
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.
Looks great
Description
Updates the megamenu with a prop that can he used to add icons next to the heading in the sidebar menu groups
Screenshots
Figure: Sidebar menu heading using one of the svgs in the project as an icon
Figure: Sidebar menu using an external image as the icon