From aeeafe8edcbe681df731b55e00377daca8ccd63a Mon Sep 17 00:00:00 2001 From: celine Date: Mon, 20 Oct 2025 16:30:35 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20design:=20=EC=95=8C=EB=A6=BC=20?= =?UTF-8?q?=EC=9C=84=EC=B9=98=20=EC=88=98=EC=A0=95=20=EB=B0=8F=20=EB=82=B4?= =?UTF-8?q?=EA=B0=80=EA=B2=8C=20=EC=95=8C=EB=A6=BC=20=EC=82=AD=EC=A0=9C=20?= =?UTF-8?q?#97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/layout/frame/frame.tsx | 2 +- src/components/ui/table/Table.tsx | 24 +- .../[shopId]/notices/[noticeId]/edit.tsx | 152 +++++++------ .../[shopId]/notices/[noticeId]/index.tsx | 82 ++++--- .../shops/[shopId]/notices/register/index.tsx | 208 +++++++++--------- src/pages/my-profile/index.tsx | 26 +-- 6 files changed, 242 insertions(+), 252 deletions(-) diff --git a/src/components/layout/frame/frame.tsx b/src/components/layout/frame/frame.tsx index 5c7d5f1..65670e2 100644 --- a/src/components/layout/frame/frame.tsx +++ b/src/components/layout/frame/frame.tsx @@ -13,7 +13,7 @@ const Frame = ({ title, content, buttonText, href }: FrameProps) => { return ( <> -

{title}

+

{title}

{content}

diff --git a/src/components/ui/table/Table.tsx b/src/components/ui/table/Table.tsx index c0a3a61..37d562a 100644 --- a/src/components/ui/table/Table.tsx +++ b/src/components/ui/table/Table.tsx @@ -33,13 +33,11 @@ export default function Table({ noticeId, }: TableProps) { return ( -
-
-

- {userRole === 'employer' ? '신청자 목록' : '신청 내역'} -

-
-
+ <> +

+ {userRole === 'employer' ? '신청자 목록' : '신청 내역'} +

+
@@ -48,7 +46,7 @@ export default function Table({
0 && index < headers.length - 1 && 'w-[245px]', @@ -76,10 +74,12 @@ export default function Table({
-
- -
+ {offset >= 2 && ( +
+ +
+ )}
-
+ ); } diff --git a/src/pages/employer/shops/[shopId]/notices/[noticeId]/edit.tsx b/src/pages/employer/shops/[shopId]/notices/[noticeId]/edit.tsx index 2d0c694..8746d63 100644 --- a/src/pages/employer/shops/[shopId]/notices/[noticeId]/edit.tsx +++ b/src/pages/employer/shops/[shopId]/notices/[noticeId]/edit.tsx @@ -1,4 +1,4 @@ -import { Container, Wrapper } from '@/components/layout'; +import { Container } from '@/components/layout'; import { Button, DateInput, Input, Modal, TimeInput } from '@/components/ui'; import useAuth from '@/hooks/useAuth'; import axiosInstance from '@/lib/axios'; @@ -98,82 +98,80 @@ const EmployerNoticeEditPage = () => { if (!user?.shop) return null; return ( - - -

공고 편집

- -
-
- setWage(e.currentTarget.value.replace(/\D+/g, ''))} - /> - - setWorkhour(Number(e.currentTarget.value))} - /> - - - setDate(selectedDate instanceof Date ? selectedDate : new Date(selectedDate)) - } - /> - - -
- -
- -