-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(mobile): 시간 선택 View Layout을 구현합니다. (#62)
- Loading branch information
Showing
5 changed files
with
56 additions
and
1 deletion.
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,14 @@ | ||
import SelectDateHeader from "../../components/select-date/SelectDateHeader"; | ||
|
||
export default function layout({ | ||
children, | ||
}: Readonly<{ | ||
children: React.ReactNode; | ||
}>) { | ||
return ( | ||
<> | ||
<SelectDateHeader /> | ||
<div className="p-[2rem]">{children}</div> | ||
</> | ||
); | ||
} |
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,3 @@ | ||
export default function page() { | ||
return <div>hi</div>; | ||
} |
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 @@ | ||
"use client"; | ||
|
||
import { MobileIconArrowLeftBlack } from "@setaday/icon"; | ||
import { useRouter } from "next/navigation"; | ||
|
||
function SelectDateHeader() { | ||
const router = useRouter(); | ||
const clickArrowBtn = () => { | ||
router.back(); | ||
}; | ||
return ( | ||
<header className="border-gray-1 flex h-[5.2rem] w-[100dvw] items-center justify-between border-b-[1px] px-[0.9rem]"> | ||
<button onClick={clickArrowBtn}> | ||
<MobileIconArrowLeftBlack /> | ||
</button> | ||
|
||
<h2 className="font-body3_m_16 text-gray-6">날짜 선택</h2> | ||
|
||
<div className="h-[3.2rem] w-[3.2rem]"></div> | ||
</header> | ||
); | ||
} | ||
|
||
export default SelectDateHeader; |
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