Conversation
|
been excited for this! |
geraldiner
left a comment
There was a problem hiding this comment.
Nice work, and is working as intended! 🥳
I noticed something wonky with the buttons on desktop and had a thought about implementation, so feel free to take or leave that part. 🙂
| import { useFormModalContext } from "../../contexts/FormModalContext"; | ||
|
|
||
| function HamburgerNav({ logo, logotext }) { | ||
| function HamburgerNav({ logo, logotext, links }) { |
There was a problem hiding this comment.
Since we're specifying links as a prop now, could we send the defaultLinks at the parent level? My 2 cents is that the HamburgerNav should only display the links as passed, and not worry about the logic for determining what they should be.
Something like
// CalendarPage.jsx
const CALENDAR_NAV_LINKS = [...list of links here]
<HamburgerNav logo={Logo} logotext="./logotext.png" links={CALENDAR_NAV_LINKS} />// LandingPage.jsx
const LANDING_NAV_LINKS = [...list of links here, can also do logic for signed in/out]
<HamburgerNav logo={"./logoicon.png"} logotext={"./logotext.png"} links={LANDING_NAV_LINKS} />There was a problem hiding this comment.
I believe I had something like that before, but I wasn't getting it to work. My limited understanding, I'm sure. So kept it what seemed easiest in HamburgerNav.
I'm open though, and interested in what any other reviewers think!
There was a problem hiding this comment.
checking in again on this @funbunch. Did you want to implement this change or not? I think it's fine to merge for now, then we could make a separate issue for this refactor if we want to.
@geraldiner i think that @funbunch wasn't clear on how to implement this. if you have capacity could you help, otherwise we will merge it as is.
thanks!
There was a problem hiding this comment.
So sorry it's been a while and even I forgot the context of my own comment. 😅
I'd say merge as-is for now. There might be some other things to refactor for the component and don't want to slow this PR down.
|
Looks great overall. i noticed that when you click outside the hamburger menu, it doesn't close. I'm going to say let's merge this anyway, and could you create a separate issue just for that, so someone else could take it? |
67b7974 to
290a3cf
Compare
290a3cf to
e641697
Compare
|
@DevinCLane @moses-codes Not sure why this is failing since I did run prettier and nothing was changed. |
|
hmm not sure, beyond what that error says |
|
@DevinCLane Got the formatting errors to pass! However, I see some other tests now fail and require some refactoring. Will continue to work on those next. |


Description
Removed buttons on mobile on the /calendar route and added a hamburger menu.
Type of change
Please select everything applicable. Please, do not delete any lines.
Issue
Checklist:
npm run testandnpm run test:e2eand all tests have passed successfully or I have included details within my PR on the failure.npm run lintand resolved any outstanding errors. Most issues can be solved by executingnpm run format