-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore(ui): vite 의존성 제거 * feat(ui): svg 경로 import 를 위한 svg.d.ts 정의 * feat(ui): app 타입 상수 추가 * feat(ui): header 타입 상수 추가 * feat(ui): page 타입 상수 추가 * feat(ui): app, header, page 타입 정의 * feat(ui): 3가지 타입의 header 컴포넌트 추가 * feat(ui): header 컴포넌트에 들어갈 svg 아이콘 추가 * feat(ui): appType 과 pageType 을 관리하는 useHeader hook 추가 * feat(ui): headerType 과 headerTitle 을 계산하는 함수 추가 * design(ui): bottomNavBar 스타일 변경 * feat(ui): headerType 에 따라 다른 Header 컴포넌트 보여주는 기능 추가 * feat(common): layout 컴포넌트를 보호소앱과 봉사자앱에서 관리하도록 변경 * feat(common): router 에 id 를 추가하여 App 타입과 Page 타입 저장 * fix(common): packages/ui 의 path alias 가 빌드시에 적용 안되는 에러 수정 * refactor(ui): pageType 의 HEADER_TYPE 내용을 구조분해 할당으로 꺼내 사용하도록 수정
- Loading branch information
Showing
27 changed files
with
641 additions
and
61 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,24 @@ | ||
import { Container } from '@chakra-ui/react'; | ||
import { Outlet } from 'react-router-dom'; | ||
import BottomNavBar from 'ui/layout/BottomNavBar'; | ||
import Header from 'ui/layout/Header'; | ||
import { HeaderOption } from 'ui/types/header'; | ||
|
||
export default function Layout() { | ||
const headerOption: HeaderOption = { | ||
onMenuClick: () => {}, | ||
onSubmit: (keyword: string) => { | ||
console.log(keyword); | ||
}, | ||
}; | ||
|
||
return ( | ||
<Container maxW="container.sm" h="100vh" p={0} centerContent> | ||
<Header headerOption={headerOption} /> | ||
<Container height="100%" pb="50px" px="16px"> | ||
<Outlet /> | ||
</Container> | ||
<BottomNavBar /> | ||
</Container> | ||
); | ||
} |
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,24 @@ | ||
import { Container } from '@chakra-ui/react'; | ||
import { Outlet } from 'react-router-dom'; | ||
import BottomNavBar from 'ui/layout/BottomNavBar'; | ||
import Header from 'ui/layout/Header'; | ||
import { HeaderOption } from 'ui/types/header'; | ||
|
||
export default function Layout() { | ||
const headerOption: HeaderOption = { | ||
onMenuClick: () => {}, | ||
onSubmit: (keyword: string) => { | ||
console.log(keyword); | ||
}, | ||
}; | ||
|
||
return ( | ||
<Container maxW="container.sm" h="100vh" p={0} centerContent> | ||
<Header headerOption={headerOption} /> | ||
<Container height="100%" pb="50px" px="16px"> | ||
<Outlet /> | ||
</Container> | ||
<BottomNavBar /> | ||
</Container> | ||
); | ||
} |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.