From 837e0e904c40f7b87561c34ca3f49edd5d8d1c52 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Thu, 28 Sep 2023 18:03:43 +0200 Subject: feat(components): replace icons with a generic Icon component Sizes are also predefined and can be set using the `size` prop, so the consumers should no longer adjust the size in CSS. --- src/components/templates/layout/layout.tsx | 29 ++++++++++++----------------- 1 file changed, 12 insertions(+), 17 deletions(-) (limited to 'src/components/templates/layout/layout.tsx') diff --git a/src/components/templates/layout/layout.tsx b/src/components/templates/layout/layout.tsx index 810a019..c994469 100644 --- a/src/components/templates/layout/layout.tsx +++ b/src/components/templates/layout/layout.tsx @@ -16,17 +16,7 @@ import { useScrollPosition, useSettings, } from '../../../utils/hooks'; -import { - ButtonLink, - Career, - CCBySA, - ComputerScreen, - Envelop, - Home, - Main, - NoScript, - PostsStack, -} from '../../atoms'; +import { ButtonLink, Icon, Main, NoScript } from '../../atoms'; import { SiteFooter, type SiteFooterProps, @@ -82,6 +72,11 @@ export const Layout: FC = ({ description: 'Layout: noscript message', id: '7jVUT6', }); + const copyrightTitle = intl.formatMessage({ + defaultMessage: 'CC BY SA', + description: 'Layout: copyright title', + id: 'yB1SPF', + }); const copyrightData = { dates: { @@ -89,7 +84,7 @@ export const Layout: FC = ({ end: copyright.end, }, owner: name, - icon: , + icon: , }; const homeLabel = intl.formatMessage({ @@ -123,31 +118,31 @@ export const Layout: FC = ({ id: 'home', label: homeLabel, href: '/', - logo: , + logo: , }, { id: 'blog', label: blogLabel, href: ROUTES.BLOG, - logo: , + logo: , }, { id: 'projects', label: projectsLabel, href: ROUTES.PROJECTS, - logo: , + logo: , }, { id: 'cv', label: cvLabel, href: ROUTES.CV, - logo: , + logo: , }, { id: 'contact', label: contactLabel, href: ROUTES.CONTACT, - logo: , + logo: , }, ]; -- cgit v1.2.3