Skip to content

Commit a657793

Browse files
style: reorder class names for consistency in Header and MobileNav components
1 parent 017667d commit a657793

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

components/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const Header = () => {
5959
<Link
6060
key={link.title}
6161
href={link.href}
62-
className="hover:text-primary-500 dark:hover:text-primary-400 m-1 font-medium text-gray-900 dark:text-gray-100 flex items-center gap-1"
62+
className="flex items-center gap-1 m-1 font-medium text-gray-900 dark:text-gray-100 hover:text-primary-500 dark:hover:text-primary-400"
6363
>
6464
{link.title}
6565
{link.external && (

components/Link.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ import Link from 'next/link'
33
import type { LinkProps } from 'next/link'
44
import { AnchorHTMLAttributes } from 'react'
55

6-
const CustomLink = ({ href, external, ...rest }: LinkProps & AnchorHTMLAttributes<HTMLAnchorElement> & { external?: boolean }) => {
6+
const CustomLink = ({
7+
href,
8+
external,
9+
...rest
10+
}: LinkProps & AnchorHTMLAttributes<HTMLAnchorElement> & { external?: boolean }) => {
711
const isInternalLink = href && href.startsWith('/')
812
const isAnchorLink = href && href.startsWith('#')
913
const isExternalLink = external || (href && (href.startsWith('http://') || href.startsWith('https://')))

components/MobileNav.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const MobileNav = () => {
7777
<Link
7878
key={link.title}
7979
href={link.href}
80-
className="hover:text-primary-500 dark:hover:text-primary-400 mb-4 py-2 pr-4 text-2xl font-bold tracking-widest text-gray-900 outline outline-0 dark:text-gray-100 flex items-center gap-2"
80+
className="flex items-center gap-2 mb-4 py-2 pr-4 text-2xl font-bold tracking-widest text-gray-900 outline outline-0 dark:text-gray-100 hover:text-primary-500 dark:hover:text-primary-400"
8181
onClick={onToggleNav}
8282
>
8383
{link.title}

0 commit comments

Comments
 (0)