From 24d5f884978485ad09aa05e8d8deac15cec7bea1 Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Thu, 2 Nov 2023 15:32:43 +0100 Subject: Formatting with prettier --- src/components/icons.tsx | 20 ++++++++------------ src/components/icons/fediverse.ts | 4 ++-- 2 files changed, 10 insertions(+), 14 deletions(-) (limited to 'src/components') diff --git a/src/components/icons.tsx b/src/components/icons.tsx index 5f3b40f..402b622 100644 --- a/src/components/icons.tsx +++ b/src/components/icons.tsx @@ -5,19 +5,11 @@ */ import { useId } from 'react'; -import { - siGithub, - siGooglescholar, - siLinkedin, - siOrcid, -} from 'simple-icons'; +import { siGithub, siGooglescholar, siLinkedin, siOrcid } from 'simple-icons'; import fediverse from './icons/fediverse'; -export function Icon({ path, alt }: { - path: string; - alt: string; -}) { +export function Icon({ path, alt }: { path: string; alt: string }) { const titleId = useId(); return ( @@ -33,12 +25,16 @@ export function Icon({ path, alt }: { > - {alt} + + {alt} + ); } -export function SimpleIcon({ icon: { path, title } }: { +export function SimpleIcon({ + icon: { path, title }, +}: { icon: { path: string; title: string; diff --git a/src/components/icons/fediverse.ts b/src/components/icons/fediverse.ts index b1dec2c..5bc694a 100644 --- a/src/components/icons/fediverse.ts +++ b/src/components/icons/fediverse.ts @@ -3,10 +3,10 @@ * SPDX-FileCopyrightText: 2023 Kristóf Marussy * * SPDX-License-Identifier: CC0-1.0 - * + * * This icon is based on the Fediverse logo proposal (mono version) SVG by Eukombos at * https://commons.wikimedia.org/w/index.php?title=File:Fediverse_logo_proposal_(mono_version).svg&oldid=794518552 - * + * * The paths in the original SVG were merged into a single path and * the drawing was resized to match the "0 0 24 24" viewbox of Simple Icons. */ -- cgit v1.2.3-70-g09d2