From bbadc3bd64e12f0514371c9d43b9cfd2a4882638 Mon Sep 17 00:00:00 2001 From: chaerin <70943835+chaerin-dev@users.noreply.github.com> Date: Fri, 1 Jul 2022 02:21:46 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=98=A4=EB=A5=98=EC=A0=9C=EB=B3=B4,?= =?UTF-8?q?=20=EC=A0=95=EB=8B=B5=EC=A0=9C=EB=B3=B4=20=ED=83=AD=20=EC=88=9C?= =?UTF-8?q?=EC=B0=A8=EC=A0=81=20=EB=A0=8C=EB=8D=94=EB=A7=81=20=EA=B5=AC?= =?UTF-8?q?=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Components/Contents.js | 6 +- src/Components/Tabs/ErrorReport.js | 91 +++++++++++++++++++ .../Tabs/ErrorReport/ErrorReport.js | 34 ------- .../Tabs/{Introduction => }/Introduction.js | 0 src/Components/Tabs/SolutionReport.js | 62 +++++++++++++ .../Tabs/SolutionReport/SolutionReport.js | 27 ------ src/recoil/atom 2.js | 6 ++ 7 files changed, 162 insertions(+), 64 deletions(-) create mode 100644 src/Components/Tabs/ErrorReport.js delete mode 100644 src/Components/Tabs/ErrorReport/ErrorReport.js rename src/Components/Tabs/{Introduction => }/Introduction.js (100%) create mode 100644 src/Components/Tabs/SolutionReport.js delete mode 100644 src/Components/Tabs/SolutionReport/SolutionReport.js create mode 100644 src/recoil/atom 2.js diff --git a/src/Components/Contents.js b/src/Components/Contents.js index b7537b4..4fe1bb1 100644 --- a/src/Components/Contents.js +++ b/src/Components/Contents.js @@ -1,8 +1,8 @@ import { BrowserRouter, Routes, Route, Link } from "react-router-dom"; -import Introduction from "./Tabs/Introduction/Introduction"; -import ErrorReport from "./Tabs/ErrorReport/ErrorReport"; -import SolutionReport from "./Tabs/SolutionReport/SolutionReport"; +import Introduction from "./Tabs/Introduction"; +import ErrorReport from "./Tabs/ErrorReport"; +import SolutionReport from "./Tabs/SolutionReport"; export default function TabNavigation() { return ( diff --git a/src/Components/Tabs/ErrorReport.js b/src/Components/Tabs/ErrorReport.js new file mode 100644 index 0000000..10d9d9a --- /dev/null +++ b/src/Components/Tabs/ErrorReport.js @@ -0,0 +1,91 @@ +import { useState } from "react"; + +export default function ErrorReport() { + const [submitted, setSubmitted] = useState(false); + const [errorCategory, setErrorCategory] = useState(-1); + const [questionName, setQuestionName] = useState(""); + const [detailInput, setDetailInput] = useState(""); + + return submitted ? ( +
제보해주셔서 감사합니다.
+ +ErrorReportTab
-제보해주셔서 감사합니다.
+ +SolutionReportTab
-