Skip to content

Commit

Permalink
feat : clone on click
Browse files Browse the repository at this point in the history
  • Loading branch information
jasper200207 committed Aug 21, 2024
1 parent 4144a03 commit cb996e9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/Sidebar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ const Sidebar = () => {
w={!isDesktop && isOpen ? '100%' : '0'}
h="100%"
bg={!isDesktop && isOpen ? 'rgba(0,0,0,0.5)' : ''}
onClick={() => {
setIsOpen(false);
}}
>
<Box pos="absolute" w={isOpen ? { base: '215px', lg: '230px', '2xl': '240px' } : '52px'}>
<SidebarContent isOpen={isOpen} setIsOpen={setIsOpen} />
Expand Down

0 comments on commit cb996e9

Please sign in to comment.