-
Notifications
You must be signed in to change notification settings - Fork 1
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
196 as a dev I want to refactor the header component #297
196 as a dev I want to refactor the header component #297
Conversation
SamuelPelletierEvraire
commented
Oct 24, 2024
•
edited
Loading
edited
- Must contain the ACIA logo
- Must contain a button to change language
- Must contain a profile button profile / dashboard page issue
- Must contain a button to display the side menu side menu issue
- Created User class file (Base) - Implement header component. - Remove some console.log unused in layout.tsx - Add userPopUp component (Not finish yet)
- Added user class to manage user information - Added UserPopup.tsx for log out/ version app / username - Added theme.d.ts file to add additional type for theme
- Add new new type (Breakpoints)
- Remove file counter.tsx that was not used (Exemple case) - Fix lint - Fix ACIA logo adaptiveness
- Create file for test Header
|
Create new issue : Create new issue for separate user Popup and the header.: #298 |
src/app/layout.tsx
Outdated
export default function RootLayout({ | ||
children, | ||
}: Readonly<{ children: React.ReactNode }>) { | ||
const [SideNavOpen, setSideNavOpen] = useState(false); | ||
const { sideNavOpen } = useStore(); |
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.
Let's use the zustand stores sparsely. As a rule of thumb, when the components sharing the state are grouped and hierarchically not too distant, we should use useState and props drilling. Like in this case with Header and SideNav, they are close enough, using useState is fine.
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
…https://github.com/ai-cfia/fertiscan-frontend into 196-as-a-dev-i-want-to-refactor-the-header-component
- Added hover style on button and icon button
- Added hover style on button and icon button
…https://github.com/ai-cfia/fertiscan-frontend into 196-as-a-dev-i-want-to-refactor-the-header-component
…nto 196-refactor-header-suggestions
issue #196: header component responsiveness suggestions