diff --git a/react-whenMeet/src/components/MakeDay2.jsx b/react-whenMeet/src/components/MakeDay2.jsx index aec9ea6561992f7c433c6726ec2afc249b239693..6e47b1bc5f78265431dbc7795e420b2a56ca176d 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 22ce74e00355ca1a1e34ffb9936a56feefc48ead..b9b6dae74955518f2428a262f9ef49695dce7ebd 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> );