File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import type { FooterLink, FooterLinkSection } from "@/lib/types"
6
6
7
7
import Translation from "@/components/Translation"
8
8
9
+ import { cn } from "@/lib/utils/cn"
9
10
import { scrollIntoView } from "@/lib/utils/scrollIntoView"
10
11
11
12
import { BaseLink } from "../../tailwind/Link"
@@ -298,6 +299,9 @@ const Footer = ({ lastDeployLocaleTimestamp }: FooterProps) => {
298
299
} ,
299
300
]
300
301
302
+ const footerLinkClassName =
303
+ "text-body-medium no-underline hover:text-primary hover:after:text-primary"
304
+
301
305
return (
302
306
< footer className = "px-8 py-4" >
303
307
< div className = "flex flex-wrap items-center justify-center gap-8 border-t border-body-light py-4 md:justify-between" >
@@ -321,7 +325,7 @@ const Footer = ({ lastDeployLocaleTimestamp }: FooterProps) => {
321
325
< ListItem key = { linkIdx } className = "mb-4" >
322
326
< BaseLink
323
327
href = { link . to }
324
- className = "text-body-medium no-underline hover:text-primary hover:after:text-primary"
328
+ className = { footerLinkClassName }
325
329
isPartiallyActive = { false }
326
330
>
327
331
{ link . text }
@@ -351,7 +355,7 @@ const Footer = ({ lastDeployLocaleTimestamp }: FooterProps) => {
351
355
< ListItem key = { text } className = "px-2 text-center" >
352
356
< BaseLink
353
357
href = { to }
354
- className = "w-full text-body-medium no-underline hover:text-primary hover:after:text-primary sm:w-auto"
358
+ className = { cn ( "w-full sm:w-auto" , footerLinkClassName ) }
355
359
isPartiallyActive = { false }
356
360
>
357
361
{ text }
You can’t perform that action at this time.
0 commit comments