Skip to content
Snippets Groups Projects
Commit 96c95601 authored by 이권민's avatar 이권민
Browse files

[EDIT] 약간의 수정

parent 4b92396c
No related branches found
No related tags found
No related merge requests found
export default function MakeDay2() {
const days = [];
const date = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];
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>
)
days.push(<th className="table_head">{date[i]}</th>);
}
return (
<thead>
<tr>
<th></th>
<th className="table_head"></th>
{days}
</tr>
</thead>
......
import Button from "./Button";
export default function MakeHeader({
prevMonth,
nextMonth,
......@@ -7,9 +5,8 @@ export default function MakeHeader({
nowYear,
}) {
return (
<div>
<div className="header">
<h2>
<span className="header">
<button type="button" onClick={prevMonth}>
prev
</button>
......@@ -18,7 +15,6 @@ export default function MakeHeader({
<button type="button" onClick={nextMonth}>
next
</button>
</span>
</h2>
</div>
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment