-
Notifications
You must be signed in to change notification settings - Fork 6
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: 메뉴 토글 기능 구현한다 #898
feat: 메뉴 토글 기능 구현한다 #898
Conversation
@@ -7,10 +7,12 @@ import { navigationBarPanelStore } from '@stores/layout/navigationBarPanelStore' | |||
export const useNavigationBar = () => { | |||
const [navigationBarPanel, setNavigationBarPanel] = useExternalState(navigationBarPanelStore); | |||
|
|||
const openBasePanel = (basePanel: ReactElement) => { | |||
const toggleBasePanel = (basePanel: ReactElement) => { | |||
const isAlreadyOpen = navigationBarPanel.basePanel?.key === basePanel.key; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isBasePanelOpen와 같이 basePanel이라는 단어가 포함되는건 어떨까요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
toggleBasePanel 안에 있어서 생략할까 말까 했는데 'isBasePanelAlreadyOpen'으로 변경하겠습니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
네
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
좋은 아이디어네요.
미리 어프룹 드립니다.
[#897]
📄 Summary
🕰️ Actual Time of Completion
🙋🏻 More
close #897