From 17f41f4fb27eec47a295a636b2c32c7fc681cee1 Mon Sep 17 00:00:00 2001 From: Dam <60846068+j2h30728@users.noreply.github.com> Date: Tue, 22 Oct 2024 21:18:20 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EA=B0=84=EC=8B=9D=EC=9D=B8=EC=A6=9D=20?= =?UTF-8?q?=EC=97=85=EB=A1=9C=EB=93=9C=20=ED=8E=98=EC=9D=B4=EC=A7=80?= =?UTF-8?q?=EC=97=90=EC=84=9C=20=EC=83=81=EC=84=B8=20=EC=A0=95=EB=B3=B4=20?= =?UTF-8?q?=EC=84=A0=ED=83=9D=20=ED=95=AD=EB=AA=A9=20=EB=B3=80=EA=B2=BD?= =?UTF-8?q?=EC=9C=BC=EB=A1=9C=EC=9D=B8=ED=95=9C=20=EB=94=94=EC=9E=90?= =?UTF-8?q?=EC=9D=B8=20=EB=B0=8F=20=EC=83=81=EC=88=98=20=EB=B3=80=EA=B2=BD?= =?UTF-8?q?[#96]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/shared/constants/verification.ts | 8 ++------ src/widgets/verification/ui/VerificationOption.tsx | 3 --- .../verification/ui/VerificationRadioOptions.styled.ts | 9 ++------- src/widgets/verification/ui/VerificationRadioOptions.tsx | 6 +----- 4 files changed, 5 insertions(+), 21 deletions(-) diff --git a/src/shared/constants/verification.ts b/src/shared/constants/verification.ts index c361192..d200aca 100644 --- a/src/shared/constants/verification.ts +++ b/src/shared/constants/verification.ts @@ -16,12 +16,8 @@ export const MEAL_OPTION = { }; export const TREATS_OPTION = { - DOG_CHEW: '강아지껌', - DRIED_TREAT: '건조간식', - JERKY_TREAT: '저키/트릿', - CAN: '캔', - BISCUIT: '비스킷', - OTHER: '기타', + ALL: '다 먹었어요!', + NONE: '거의 안먹었어요!', }; export const BATH_OPTION = { diff --git a/src/widgets/verification/ui/VerificationOption.tsx b/src/widgets/verification/ui/VerificationOption.tsx index 5912682..6b42fc6 100644 --- a/src/widgets/verification/ui/VerificationOption.tsx +++ b/src/widgets/verification/ui/VerificationOption.tsx @@ -44,7 +44,6 @@ const VerificationOption = ({ case VERIFICATION.MEAL: return ( ` +export const VerificationOptionContainer = styled.label` display: flex; - width: ${({ $name }) => ($name === 'treats' ? 'auto' : '100%')}; - margin: ${({ $name }) => ($name === 'treats' ? '0 -60px' : '')}; + width: 100%; justify-content: space-around; align-items: center; gap: 10px; diff --git a/src/widgets/verification/ui/VerificationRadioOptions.tsx b/src/widgets/verification/ui/VerificationRadioOptions.tsx index 3cd020a..9097677 100644 --- a/src/widgets/verification/ui/VerificationRadioOptions.tsx +++ b/src/widgets/verification/ui/VerificationRadioOptions.tsx @@ -9,25 +9,21 @@ import { Fragment } from 'react/jsx-runtime'; import { verificationOption } from '../../../shared/constants/verification'; import * as S from './VerificationRadioOptions.styled'; -export type VerificationWithCategory = 'meal' | 'treats' | 'bath'; - const VerificationRadioOptions = ({ options, register, watch, setValue, - name, }: { options: string[]; register: UseFormRegister; watch: UseFormWatch; setValue: UseFormSetValue; - name: VerificationWithCategory; }) => { const currentValue = watch(verificationOption) as string; return ( - + {Object.values(options).map((value) => (