-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #105 from boostcampwm-2024/Feature/#104_탭_브라우징_반응형_구현
Feature/#104 탭 브라우징 반응형 구현
- Loading branch information
Showing
8 changed files
with
154 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,5 +7,6 @@ export const PAGE = { | |
}; | ||
|
||
export const SIDE_BAR = { | ||
MIN_WIDTH: 40, | ||
WIDTH: 300, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { create } from "zustand"; | ||
|
||
interface SidebarStore { | ||
isSidebarOpen: boolean; | ||
actions: { | ||
toggleSidebar: () => void; | ||
}; | ||
} | ||
|
||
const useSidebarStore = create<SidebarStore>((set) => ({ | ||
isSidebarOpen: true, | ||
actions: { | ||
toggleSidebar: () => set((state) => ({ isSidebarOpen: !state.isSidebarOpen })), | ||
}, | ||
})); | ||
|
||
export const useIsSidebarOpen = () => useSidebarStore((state) => state.isSidebarOpen); | ||
export const useSidebarActions = () => useSidebarStore((state) => state.actions); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.