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 (
diff --git a/crescendo-web/src/pages/Counsel.js b/crescendo-web/src/pages/Counsel.js index 3bb8944..f115e22 100644 --- a/crescendo-web/src/pages/Counsel.js +++ b/crescendo-web/src/pages/Counsel.js @@ -35,7 +35,7 @@ function Counsel() {
- +
diff --git a/crescendo-web/src/pages/Guide.js b/crescendo-web/src/pages/Guide.js index 70064a9..2d8c80e 100644 --- a/crescendo-web/src/pages/Guide.js +++ b/crescendo-web/src/pages/Guide.js @@ -2,19 +2,19 @@ import React from "react"; import "./Guide.css"; import { useNavigate } from "react-router-dom"; -function Modal({ isOpen, onClose }) { - // 모달이 열려 있을 때만 내용이 렌더링됩니다. - if (!isOpen) return null; - return ( -
-
-

팝업창

-

이것은 팝업창입니다.

- -
-
- ); -} +// function Modal({ isOpen, onClose }) { +// // 모달이 열려 있을 때만 내용이 렌더링됩니다. +// if (!isOpen) return null; +// return ( +//
+//
+//

팝업창

+//

이것은 팝업창입니다.

+// +//
+//
+// ); +// } // 토글 버튼을 렌더링하는 컴포넌트 function Toggles() { @@ -80,7 +80,7 @@ function Guide() { step 6
- + 7 ); diff --git a/crescendo-web/src/pages/Main.js b/crescendo-web/src/pages/Main.js index 7b93804..ae3ebc7 100644 --- a/crescendo-web/src/pages/Main.js +++ b/crescendo-web/src/pages/Main.js @@ -86,13 +86,13 @@ function Main() { return (
- + var {/* 검색창 (유지) */}

오늘의 추천 Todo 🔥

- + onedayClass
My Todo