From 6cb0f24ed163dee5ee99bc4f360384e819c0e402 Mon Sep 17 00:00:00 2001 From: jhynsoo Date: Thu, 9 Nov 2023 19:30:24 +0900 Subject: [PATCH] feat: Add more item issue fields --- src/pages/WriteSteps/StatusStep.jsx | 28 +++++++++++++++++++++++----- src/pages/WriteSteps/index.jsx | 4 +++- 2 files changed, 26 insertions(+), 6 deletions(-) diff --git a/src/pages/WriteSteps/StatusStep.jsx b/src/pages/WriteSteps/StatusStep.jsx index 418a77a..6194a01 100644 --- a/src/pages/WriteSteps/StatusStep.jsx +++ b/src/pages/WriteSteps/StatusStep.jsx @@ -21,9 +21,9 @@ function StatusStep({ gotoNextStep, gotoPrevStep, status, setStatus }) { id="뒷면/옆면 파손" name="뒷면/옆면 파손" text="화면이 아닌 부분에 파손이 있어요" - value={status.back} + value={status.frame} setChecked={(value) => - setStatus((prev) => ({ ...prev, back: value })) + setStatus((prev) => ({ ...prev, frame: value })) } /> + setStatus((prev) => ({ ...prev, camera: value })) + } + /> + + setStatus((prev) => ({ ...prev, speaker: value })) + } + /> + setStatus((prev) => ({ ...prev, others: value })) diff --git a/src/pages/WriteSteps/index.jsx b/src/pages/WriteSteps/index.jsx index 7072a23..8223d88 100644 --- a/src/pages/WriteSteps/index.jsx +++ b/src/pages/WriteSteps/index.jsx @@ -10,9 +10,11 @@ function WriteSteps() { product: '', status: { display: false, - back: false, + frame: false, button: false, biometrics: false, + camera: false, + speaker: false, others: false, }, price: '',