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 (
이것은 팝업창입니다.
- -이것은 팝업창입니다.
+// +//