From 96c95601ac95eeeaaee3e6325d7948c7f9497018 Mon Sep 17 00:00:00 2001 From: "rnjsals0905@gmail.com" <rnjsals0905@ajou.ac.kr> Date: Fri, 8 Dec 2023 12:00:58 +0900 Subject: [PATCH] =?UTF-8?q?[EDIT]=20=EC=95=BD=EA=B0=84=EC=9D=98=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- react-whenMeet/src/components/MakeDay2.jsx | 32 +++++++++----------- react-whenMeet/src/components/MakeHeader.jsx | 22 ++++++-------- 2 files changed, 24 insertions(+), 30 deletions(-) diff --git a/react-whenMeet/src/components/MakeDay2.jsx b/react-whenMeet/src/components/MakeDay2.jsx index aec9ea6..6e47b1b 100644 --- a/react-whenMeet/src/components/MakeDay2.jsx +++ b/react-whenMeet/src/components/MakeDay2.jsx @@ -1,19 +1,17 @@ -export default function MakeDay2(){ - const days = []; - const date = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']; +export default function MakeDay2() { + const days = []; + const date = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]; - for(let i = 0; i < 7; i++){ - days.push( - <th className="table_head">{date[i]}</th> - ) - } + for (let i = 0; i < 7; i++) { + days.push(<th className="table_head">{date[i]}</th>); + } - return( - <thead> - <tr> - <th></th> - {days} - </tr> - </thead> - ); -} \ No newline at end of file + return ( + <thead> + <tr> + <th className="table_head"></th> + {days} + </tr> + </thead> + ); +} diff --git a/react-whenMeet/src/components/MakeHeader.jsx b/react-whenMeet/src/components/MakeHeader.jsx index 22ce74e..b9b6dae 100644 --- a/react-whenMeet/src/components/MakeHeader.jsx +++ b/react-whenMeet/src/components/MakeHeader.jsx @@ -1,5 +1,3 @@ -import Button from "./Button"; - export default function MakeHeader({ prevMonth, nextMonth, @@ -7,18 +5,16 @@ export default function MakeHeader({ nowYear, }) { return ( - <div> + <div className="header"> <h2> - <span className="header"> - <button type="button" onClick={prevMonth}> - prev - </button> - {nowYear}년<br /> - {nowMonth}월 - <button type="button" onClick={nextMonth}> - next - </button> - </span> + <button type="button" onClick={prevMonth}> + prev + </button> + {nowYear}년<br /> + {nowMonth}월 + <button type="button" onClick={nextMonth}> + next + </button> </h2> </div> ); -- GitLab