Skip to content

Commit bdb8ae2

Browse files
authored
fix(navbar): replace anchor with Link component for navigation (#278)
* fix(navbar): replace anchor with Link component for navigation Signed-off-by: Ananta <codeantu@gmail.com> * fix(navbar): replace anchor with Link component for navigation Signed-off-by: Ananta <codeantu@gmail.com> --------- Signed-off-by: Ananta <codeantu@gmail.com>
1 parent 3e9e825 commit bdb8ae2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/components/Navbar.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ function Navbar({ scrollToFooter }: NavbarProps) {
115115
>
116116
<Link
117117
to="/"
118+
rel="noopener noreferrer"
118119
style={{ display: "flex", alignItems: "center" }}
119120
>
120121
<Image
@@ -127,7 +128,8 @@ function Navbar({ scrollToFooter }: NavbarProps) {
127128
maxWidth: screens.md ? "184.17px" : "36.67px",
128129
}}
129130
/>
130-
<span style={{ color: "white" }}>Template Playground</span>
131+
<span style={{ color: "white", whiteSpace: "nowrap" }}>Template Playground</span>
132+
131133
</Link>
132134
</div>
133135
{screens.md && (
@@ -257,4 +259,4 @@ function Navbar({ scrollToFooter }: NavbarProps) {
257259
);
258260
}
259261

260-
export default Navbar;
262+
export default Navbar;

0 commit comments

Comments
 (0)