From f914ff8376dd91c4f6f8ca149e1cb6becb622d88 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Mon, 2 Oct 2023 18:45:30 +0200 Subject: refactor(components): rewrite Link component * rename `external` prop to `isExternal` * rename `download` prop to `isDownload` * rewrite CSS to reduce code length and complexity * move link styles in Sass placeholders to avoid repeats because of WordPress articles * move NavLink component to molecules --- src/components/molecules/layout/branding.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/components/molecules/layout/branding.tsx') diff --git a/src/components/molecules/layout/branding.tsx b/src/components/molecules/layout/branding.tsx index 981da74..dceee5e 100644 --- a/src/components/molecules/layout/branding.tsx +++ b/src/components/molecules/layout/branding.tsx @@ -1,8 +1,7 @@ -import Link from 'next/link'; import { type FC, useRef } from 'react'; import { useIntl } from 'react-intl'; import { useStyles } from '../../../utils/hooks'; -import { Heading } from '../../atoms'; +import { Heading, Link } from '../../atoms'; import { FlippingLogo, type FlippingLogoProps } from '../images'; import styles from './branding.module.scss'; -- cgit v1.2.3