Skip to content

Commit db6ef4f

Browse files
committed
design: Header 컴포넌트 position을 fixed로 변경
1 parent 3ae6213 commit db6ef4f

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/components/ConfirmModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ interface ConfirmModalProps {
77
description: string;
88
cancelText: string;
99
confirmText: string;
10-
confirmDisabled: boolean;
10+
confirmDisabled?: boolean;
1111
children?: React.ReactNode;
1212
onCancel: () => void;
1313
onConfirm: () => void;

src/layouts/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const Header = () => {
66
// TODO: 뒤로 가기 버튼이 보이는 조건 추가
77
// TODO: 스크롤 발생 시, 어떻게 보여져야 하는지
88
return (
9-
<header className="sticky top-0 z-40 flex h-16 items-center justify-between p-5">
9+
<header className="fixed top-0 z-40 flex h-16 w-full max-w-150 items-center justify-between p-5">
1010
<ArrowLeftIcon className="h-6 w-6 text-white" />
1111
<div className="flex items-center gap-3">
1212
<Link to="/mypage/notifications">

src/pages/MyPage/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const MyPage = () => {
2929
onConfirm={() => setIsOpenModal(false)}
3030
/>
3131
)}
32-
<main className="flex grow flex-col gap-12 px-5 pt-4 pb-6">
32+
<main className="flex grow flex-col gap-12 px-5 pt-20 pb-6">
3333
<h1 className="h2-b mx-auto flex gap-1.5">
3434
{DUMMY_ZIP_CODE.split('').map((code, index) => (
3535
<div

src/pages/Notifications/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const NotificationsPage = () => {
3030
return (
3131
<>
3232
<WarningModal isOpen={isOpenWarningModal} onClose={() => setIsOpenWarningModal(false)} />
33-
<main className="flex grow flex-col items-center px-5 pt-4 pb-9">
33+
<main className="flex grow flex-col items-center px-5 pt-20 pb-9">
3434
<h1 className="text-gray-60 body-b mb-10 w-fit rounded-full bg-white px-6 py-4">알림</h1>
3535
<button type="button" className="body-sb text-gray-60 place-self-end">
3636
모두 읽음

0 commit comments

Comments
 (0)