Skip to content
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

feat(improvements): some minor improvements #709

Merged
merged 1 commit into from
Dec 23, 2024
Merged

Conversation

WilsonNet
Copy link
Collaborator

  • Added selected prop to NavLink component to handle selected state
  • Updated SideMenuItem to use NavLink with selected prop
  • Removed redundant class names from SideMenu and SideMenuItem
  • Added overflow-x-auto to main content div in __root.tsx

@WilsonNet WilsonNet changed the title feat(side-menu): add selected state to NavLink component feat(improvements): some minor improvements Dec 23, 2024
Comment on lines 27 to 30
const selectedItemClassName =
'items-center hover:text-sky-500 w-full flex pl-5 py-4 cursor-pointer text-sky-500 bg-black border-l-4 border-sky-500';
const notSelectedItemClassName =
'items-center hover:text-sky-500 w-full flex pl-5 py-4 cursor-pointer text-white';
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

have a baseClass variable for this

- Added `selected` prop to `NavLink` component to handle selected state
- Updated `SideMenuItem` to use `NavLink` with `selected` prop
- Removed redundant class names from `SideMenu` and `SideMenuItem`
- Added `overflow-x-auto` to main content div in `__root.tsx`
@WilsonNet
Copy link
Collaborator Author

this was made by accarini and I submitted the PR and approved it

@WilsonNet WilsonNet merged commit 7141c73 into main Dec 23, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants