Closed pzagardedukic closed 2 weeks ago
DONE. Notification dot - change the color, make it appear only when there is at least one notification.
DONE. MenuItems - text, border and icons change color when the MenuItem is active.
Check if the style and logic of the MainSidebar are working correctly.
DONE. Colors must be changeable in Storybook.
DONE. ?? Should i specify at which width or on which devices it should be displayed? Discuss with the team. - HIDE ON SM
DONE. Outline Icons When Inactive and Fill Icons When Active for MenuItems.
DONE. Added notificationsCount as a prop to MainSidebar.
DONE. Refactor Component Colors to Use MUI Theme.
DONE. Change Notification color to #D21A4D
For documentation:
Use Storybook Args to Pass Custom Routes Now, users can pass their own routes when using the MainSidebar component in Storybook.
For example, in your Storybook UI, you can modify the args to provide different routes:
export const CustomRoutes = Template.bind({}); CustomRoutes.args = { routes: [ { text: 'Home', path: '/home', icon: HomeIcon, }, { text: 'Profile', path: '/profile', icon: ProfileIcon, }, // Add more custom routes here ], }; With this setup, your MainSidebar component is now flexible and can accept custom routes via props, making it easier to use and customize in Storybook.
DONE. Users can provide their own routes when using the Storybook.
Description:
We need to integrate our MainSidebar into Storybook for desktop devices into the existing Storybook UI Kit. The task includes ensuring that the sidebar is reusable, clean, and properly modified. Additionally, any potential style issues should be identified and fixed.
Set Up Your Environment:
Tasks:
Acceptance Criteria:
Test