Closed lucaseduoli closed 6 days ago
This pull request includes several changes to improve the handling of the sidebar state in the frontend codebase. The main changes involve removing the useSidebar hook and replacing it with data attributes to manage the sidebar's open state.
useSidebar
src/frontend/src/components/ui/sidebar.tsx
data-open
src/frontend/src/pages/FlowPage/components/PageComponent/index.tsx
src/frontend/src/pages/MainPage/components/header/index.tsx
This pull request includes several changes to improve the handling of the sidebar state in the frontend codebase. The main changes involve removing the
useSidebar
hook and replacing it with data attributes to manage the sidebar's open state.Sidebar state management improvements:
src/frontend/src/components/ui/sidebar.tsx
: Added adata-open
attribute to manage the sidebar's open state.src/frontend/src/pages/FlowPage/components/PageComponent/index.tsx
: Removed theuseSidebar
hook and replaced it with data attributes in various components to handle the sidebar's open state. [1] [2] [3] [4]Code cleanup:
src/frontend/src/pages/MainPage/components/header/index.tsx
: Removed theuseSidebar
hook and updated the class names to use data attributes for managing the sidebar's open state. [1] [2] [3]