mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
fix: navbar links
This commit is contained in:
1 parent
96b4ab4380
commit
ddb822054f
1 file changed
+4
-8
@@ -14,11 +14,11 @@ import {
|
|||||||
Flex,
|
Flex,
|
||||||
Heading,
|
Heading,
|
||||||
IconButton,
|
IconButton,
|
||||||
Link,
|
|
||||||
Popover,
|
Popover,
|
||||||
Spinner,
|
Spinner,
|
||||||
Text,
|
Text,
|
||||||
} from '@radix-ui/themes';
|
} from '@radix-ui/themes';
|
||||||
|
import Link from 'next/link';
|
||||||
import { usePathname } from 'next/navigation';
|
import { usePathname } from 'next/navigation';
|
||||||
import { Suspense, useState } from 'react';
|
import { Suspense, useState } from 'react';
|
||||||
import { REGIONS, UNLOCALIZED_REGION_NAMES } from '../../constants/regions';
|
import { REGIONS, UNLOCALIZED_REGION_NAMES } from '../../constants/regions';
|
||||||
@@ -80,13 +80,9 @@ export default function Navbar() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Link
|
<Link
|
||||||
highContrast={selected}
|
|
||||||
color="gray"
|
|
||||||
underline={selected ? 'always' : 'hover'}
|
|
||||||
size="2"
|
|
||||||
onClick={(event) => event.preventDefault()}
|
|
||||||
style={{ all: 'inherit' }}
|
|
||||||
key={tool.id}
|
key={tool.id}
|
||||||
|
data-accent-color="gray"
|
||||||
|
className={`rt-Text rt-reset rt-Link rt-r-size-2 rt-underline-${selected ? 'always' : 'hover'}`}
|
||||||
href={`/tools/${tool.id}`}
|
href={`/tools/${tool.id}`}
|
||||||
>
|
>
|
||||||
{tool.title}
|
{tool.title}
|
||||||
@@ -191,7 +187,7 @@ export default function Navbar() {
|
|||||||
{TOOLS.filter((tool) => !tool.href).map((tool) => (
|
{TOOLS.filter((tool) => !tool.href).map((tool) => (
|
||||||
<Link
|
<Link
|
||||||
key={tool.id}
|
key={tool.id}
|
||||||
href={tool.href ?? `/tools/${tool.id}`}
|
href={`/tools/${tool.id}`}
|
||||||
target={tool.href ? '_blank' : undefined}
|
target={tool.href ? '_blank' : undefined}
|
||||||
className={styles.toolCard}
|
className={styles.toolCard}
|
||||||
style={{
|
style={{
|
||||||
|
|||||||
Reference in new issue
Block a user