-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Header과 Navigation이 렌더링되지 않던 버그 수정 (#226)
* HeaderContent 대신 ContentHeader과 CoverableRoute를 각각 props로 받게 변경 * Navigation 구조에서 child.prop로 가져오던 부분을 context로 변경함 * NavigationArea가 남아 있던 버그 수정 - key 값이 남아있는 듯 함 * 레오 리뷰 반영 * React.Children.map 에 null escape 조건 추가
- Loading branch information
Showing
13 changed files
with
160 additions
and
129 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* External dependencies */ | ||
import { createContext } from 'react' | ||
import { noop } from 'lodash-es' | ||
|
||
export interface NavigationContextProps { | ||
optionIndex: number | ||
showChevron: boolean | ||
allowMouseMove: boolean | ||
isHoveringOnPresenter: boolean | ||
onClickClose: () => void | ||
} | ||
|
||
export const NavigationContext = createContext<NavigationContextProps>({ | ||
optionIndex: -1, | ||
showChevron: false, | ||
allowMouseMove: false, | ||
isHoveringOnPresenter: false, | ||
onClickClose: noop, | ||
}) |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.