Skip to content

Commit ec1ba8a

Browse files
committed
feat: 헤더 로고에 링크 추가
1 parent eff48bd commit ec1ba8a

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

src/components/header/header.tsx

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
import Image from "next/image";
22
import styles from "./header.module.css";
3+
import Link from "next/link";
34

45
export default function Header() {
56
return (
67
<div className={styles.header_container}>
78
<div className={styles.header_box}>
8-
<Image
9-
src="/doit_logo.svg"
10-
width={151}
11-
height={41}
12-
alt="logo"
13-
priority
14-
/>
9+
<Link href="/">
10+
<Image
11+
src="/doit_logo.svg"
12+
width={151}
13+
height={41}
14+
alt="logo"
15+
priority
16+
/>
17+
</Link>
1518
</div>
1619
</div>
1720
);

src/components/todo/todo-section.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { TodoSectionProps } from "@/types";
2-
import Image, { StaticImageData } from "next/image";
2+
import Image from "next/image";
33
import CheckList from "./check-list";
44
import styles from "./empty-img.module.css";
55

src/components/todo/todoList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import TodoSection from "./todo-section";
99
async function getAllTodoList() {
1010
const response = await fetch(
1111
`${process.env.NEXT_API_URL}/fe-18-sprint9/items`,
12-
{ next: { tags: [`todo`] } }
12+
{ next: { tags: ["todo"] } }
1313
);
1414

1515
if (!response.ok) console.error(response.statusText);

0 commit comments

Comments
 (0)