-
Notifications
You must be signed in to change notification settings - Fork 0
created navbar component #88
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
base: main
Are you sure you want to change the base?
Conversation
|
If we aren't migrating frontend libraries this is ready to be reviewed again. |
rayyanmridha
left a comment
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 good so far but there's a couple of things that should change
| description="All time submissions" | ||
| icon={usersIcon} | ||
| /> | ||
| <div className="flex flex-row"> |
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.
Is there anyway to add some sort of padding in between the navbar and main content? Currently, the cards and navbar look like they're touching each other.
| onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void; | ||
| } | ||
|
|
||
| const SearchBar: React.FC<SearchBarProps> = ({ |
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.
Like Hannah mentioned, do we still need to use React.FC? The prop should still be typed directly as a regular function so it can be maintained easier.
rayyanmridha
left a comment
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.
Accidentally highlighted the wrong piece of code in the last review but I corrected it now:
| href="#setting" | ||
| label="Setting" | ||
| icon={<IoIosSettings />} | ||
| /> |
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.
Change the label to be "Settings"
| href="#notification" | ||
| label="Notification" | ||
| icon={<FaBell />} | ||
| /> |
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.
Change the label to be "Notifications"
ℹ️ Issue
Closes #71
📝 Description
Created a usable component for the navbar
Briefly list the changes made to the code:
✔️ Verification
🏕️ (Optional) Future Work / Notes