From 3f38357280c4257b45ca91f7aab99bcaf0586d8a Mon Sep 17 00:00:00 2001 From: jiyun0220 <145185712+jiyun0220@users.noreply.github.com> Date: Tue, 27 Aug 2024 11:25:16 +0900 Subject: [PATCH] feat :: fix --- crescendo-web/src/App.js | 16 ++++++++-------- crescendo-web/src/Login.js | 12 ------------ crescendo-web/src/pages/Counsel.js | 2 +- crescendo-web/src/pages/Guide.js | 28 ++++++++++++++-------------- crescendo-web/src/pages/Main.js | 4 ++-- 5 files changed, 25 insertions(+), 37 deletions(-) diff --git a/crescendo-web/src/App.js b/crescendo-web/src/App.js index d25f729..95e0515 100644 --- a/crescendo-web/src/App.js +++ b/crescendo-web/src/App.js @@ -17,15 +17,15 @@ import Counsel from "./pages/Counsel"; import Board from "./pages/Board"; const App = () => { - const [isModalOpen, setIsModalOpen] = useState(false); - const openModal = () => { - setIsModalOpen(true); - }; + // const [isModalOpen, setIsModalOpen] = useState(false); + // const openModal = () => { + // setIsModalOpen(true); + // }; // 모달 닫기 함수 - const closeModal = () => { - setIsModalOpen(false); - }; - + // const closeModal = () => { + // setIsModalOpen(false); + // }; + const [formData, setFormData] = useState({ id: "", password: "", diff --git a/crescendo-web/src/Login.js b/crescendo-web/src/Login.js index 7c7f2de..addfade 100644 --- a/crescendo-web/src/Login.js +++ b/crescendo-web/src/Login.js @@ -14,19 +14,7 @@ function Login() { setLoginData({ ...loginData, [e.target.name]: e.target.value }); }; - const handleLogin = async () => { - try { - const response = await axios.post("https://sh-crescendo-server.azurewebsites.net/auth/login", loginData); - if (response.status === 200) { - navigate("/Main"); - } else { - console.error("Login failed"); - } - } catch (error) { - console.error("There was an error during the login process:", error); - } - }; return (
이것은 팝업창입니다.
- -이것은 팝업창입니다.
+// +//