Skip to content

Commit 55b538b

Browse files
committedJun 7, 2024·
fix: rename herf to href
1 parent 5ef770c commit 55b538b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎client/src/components/header.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ export function Header() {
3939
</p>
4040
</div>
4141
</div>
42-
<NavItem title="文章" selected={location === "/" || location.startsWith('/feed')} herf="/" />
42+
<NavItem title="文章" selected={location === "/" || location.startsWith('/feed')} href="/" />
4343
{/* <NavItem title="标签" selected={false} onClick={() => { }} /> */}
44-
{profile?.permission && <NavItem title="写作" selected={location.startsWith("/writing")} herf="/writing" />}
45-
<NavItem title="朋友们" selected={location === "/friends"} herf="/friends" />
46-
<NavItem title="关于" selected={location === "/about"} herf="/about" />
44+
{profile?.permission && <NavItem title="写作" selected={location.startsWith("/writing")} href="/writing" />}
45+
<NavItem title="朋友们" selected={location === "/friends"} href="/friends" />
46+
<NavItem title="关于" selected={location === "/about"} href="/about" />
4747
<UserAvatar className="visible opacity-100 sm:hidden sm:opacity-0 duration-300 justify-center items-center h-12" profile={profile} />
4848
</div>
4949
</div>

0 commit comments

Comments
 (0)
Please sign in to comment.