8000 feat: add Link to Logo · codeisneverodd/home@11c1df1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 11c1df1

Browse files
feat: add Link to Logo
1 parent 4e4c93f commit 11c1df1

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/lib/@components/Logo.tsx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
1+
import { Box } from "@chakra-ui/react";
12
import Image from "next/image";
2-
import { ComponentProps } from "react";
3+
import Link from "next/link";
34
import LogoImg from "public/profile-512x512.png";
4-
import { Box } from "@chakra-ui/react";
5+
import { ComponentProps } from "react";
56

67
type LogoProps = {
78
size?: string;
89
} & Partial<ComponentProps<typeof Image>>;
910

1011
export default function Logo({ size = "120px", ...restProps }: LogoProps) {
1112
return (
12-
<Box boxSize={size} position="relative" flexShrink="0">
13-
<Image fill src={LogoImg} alt="로고" sizes={size} {...restProps} />
14-
</Box>
13+
<Link href="/">
14+
<Box boxSize={size} position="relative" flexShrink="0">
15+
<Image fill src={LogoImg} alt="로고" sizes={size} {...restProps} />
16+
</Box>
17+
</Link>
1518
);
1619
}

0 commit comments

Comments
 (0)
0