-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: getCommunityListServer api * feat: getUserInfoServer api * refactor: /my-page layout 파일 정리 * refactor: 행성에 이미 주민증이 생성됐을 때 에러 처리 * refactor: 주민증 생성 페이지에서 주민증 클릭시 라우팅 이동 에러 #231
- Loading branch information
1 parent
e556b18
commit 2368e81
Showing
8 changed files
with
90 additions
and
35 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import { privateApi } from '~/api/config/privateApi.server'; | ||
import { UserInfoResponse } from '~/types/user'; | ||
|
||
export const getUserInfoServer = () => privateApi.get<UserInfoResponse>(`/user/profile`); |
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,33 @@ | ||
'use client'; | ||
import { useRouter } from 'next/navigation'; | ||
import { PropsWithChildren } from 'react'; | ||
|
||
import { BottomNavigation } from '~/components/BottomNavigation'; | ||
import { GearFillIcon } from '~/components/Icon'; | ||
import { TopNavigation } from '~/components/TopNavigation'; | ||
import { PlanetSelector } from '~/modules/PlanetSelector'; | ||
|
||
const Layout = ({ children }: PropsWithChildren) => { | ||
const router = useRouter(); | ||
|
||
const onClickGearFill = () => { | ||
router.push('/my-page/config'); | ||
}; | ||
return ( | ||
<div> | ||
<TopNavigation bottomBorderColor="bg-grey-100"> | ||
<TopNavigation.Left> | ||
<PlanetSelector /> | ||
</TopNavigation.Left> | ||
<TopNavigation.Title></TopNavigation.Title> | ||
<TopNavigation.Right> | ||
<GearFillIcon onClick={onClickGearFill} /> | ||
</TopNavigation.Right> | ||
</TopNavigation> | ||
{children} | ||
<BottomNavigation /> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Layout; |
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 { PropsWithChildren } from 'react'; | ||
|
||
import { BottomNavigation } from '~/components/BottomNavigation'; | ||
import { TopNavigation } from '~/components/TopNavigation'; | ||
|
||
const Layout = ({ children }: PropsWithChildren) => { | ||
return ( | ||
<div> | ||
<TopNavigation> | ||
<TopNavigation.Left> | ||
<TopNavigation.BackButton /> | ||
</TopNavigation.Left> | ||
<TopNavigation.Title> | ||
<h1 className="text-h5 font-semibold text-black">설정</h1> | ||
</TopNavigation.Title> | ||
<TopNavigation.Right /> | ||
</TopNavigation> | ||
{children} | ||
<BottomNavigation /> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Layout; |
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