From 6a40b3e229ad367cad1005127815416f4b4103e0 Mon Sep 17 00:00:00 2001 From: Chaemin-L Date: Mon, 29 Jan 2024 10:57:50 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=EC=B9=AD=EC=B0=AC=20=EB=8C=93?= =?UTF-8?q?=EA=B8=80=20=EC=9E=91=EC=84=B1=20=ED=8E=98=EC=9D=B4=EC=A7=80=20?= =?UTF-8?q?=EB=B0=B0=EA=B2=BD=20=EB=A6=AC=ED=8C=A9=ED=86=A0=EB=A7=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/comment/comment-form.tsx | 40 ++++----- src/app/comment/comment-up.tsx | 87 +++++++++---------- src/components/app/comment/background.tsx | 8 ++ src/components/app/comment/content-form.tsx | 2 +- .../app/comment/layered-background.tsx | 16 ---- src/components/app/comment/required-form.tsx | 8 +- 6 files changed, 78 insertions(+), 83 deletions(-) create mode 100644 src/components/app/comment/background.tsx delete mode 100644 src/components/app/comment/layered-background.tsx diff --git a/src/app/comment/comment-form.tsx b/src/app/comment/comment-form.tsx index 301ddb18..ce582592 100644 --- a/src/app/comment/comment-form.tsx +++ b/src/app/comment/comment-form.tsx @@ -5,8 +5,8 @@ import { NotFound } from "@/app/error/404"; import CloseSVG from "@/assets/icons/close.svg?react"; import Marble1SVG from "@/assets/imgs/marble1.svg?react"; import Marble2SVG from "@/assets/imgs/marble2.svg?react"; +import { Background } from "@/components/app/comment/background"; import { ContentForm } from "@/components/app/comment/content-form"; -import { LayeredBackground } from "@/components/app/comment/layered-background"; import { RequiredForm } from "@/components/app/comment/required-form"; import { BlurredAppbar } from "@/components/common/blurred-appbar"; import { ButtonProvider } from "@/components/common/button-provider"; @@ -91,6 +91,7 @@ export const CommentFormPage = () => { return ( { ) } > + {openCrop ? ( { /> ) : ( <> - -
-
- {{ 0: , 1: }[marbleIdx]} -
+
+
+ {{ 0: , 1: }[marbleIdx]} +
-
- - {required && ( - - )} -
- +
+ + {required && ( + + )} +
{ }; return ( - <> - - - - } - > - - {/* backgroun area */} -
- -
- -
-
- {arrowShow && } - -
-
-
-
- - -
- + + + + } + > + {/* backgroun area */} + +
+ +
+ +
+
+ {arrowShow && } + +
+
+
+ + +
); }; diff --git a/src/components/app/comment/background.tsx b/src/components/app/comment/background.tsx new file mode 100644 index 00000000..dc8fa39b --- /dev/null +++ b/src/components/app/comment/background.tsx @@ -0,0 +1,8 @@ +export const Background = () => { + return ( +
+
+
+
+ ); +}; diff --git a/src/components/app/comment/content-form.tsx b/src/components/app/comment/content-form.tsx index ac0cb249..815f0370 100644 --- a/src/components/app/comment/content-form.tsx +++ b/src/components/app/comment/content-form.tsx @@ -9,7 +9,7 @@ interface ContentFormProps { } export const ContentForm = ({ content, setContent }: ContentFormProps) => { return ( -
+

칭찬 메시지