From 6edf25ed8d209c74fe6c8799c52868a04996cbe5 Mon Sep 17 00:00:00 2001 From: kjy5 Date: Tue, 13 Feb 2024 23:35:21 +0000 Subject: [PATCH] Reformat and Lint --- src/components/link-card.stories.ts | 14 +++++++------- src/components/link-card.tsx | 16 +++++++++++++--- src/utils/artifact-metas.ts | 6 +++--- 3 files changed, 23 insertions(+), 13 deletions(-) diff --git a/src/components/link-card.stories.ts b/src/components/link-card.stories.ts index 0148c37..1342836 100644 --- a/src/components/link-card.stories.ts +++ b/src/components/link-card.stories.ts @@ -10,13 +10,13 @@ export default meta; type Story = StoryObj; export const Default: Story = { - args:{ - linkMeta: artifactMetas[7].links[0], - }, + args: { + linkMeta: artifactMetas[7].links[0], + }, }; export const NoImage: Story = { - args:{ - linkMeta: artifactMetas[9].links[0], - }, -}; \ No newline at end of file + args: { + linkMeta: artifactMetas[9].links[0], + }, +}; diff --git a/src/components/link-card.tsx b/src/components/link-card.tsx index 15a26e7..1a3ea72 100644 --- a/src/components/link-card.tsx +++ b/src/components/link-card.tsx @@ -1,5 +1,5 @@ -import {LinkMeta} from '../models/artifact-meta-models.ts'; -import {Avatar, Card, CardActionArea, CardContent, CardMedia, Link, Stack, Typography} from '@mui/material'; +import { LinkMeta } from '../models/artifact-meta-models.ts'; +import { Avatar, Card, CardActionArea, CardContent, CardMedia, Link, Stack, Typography } from '@mui/material'; /** * Content of a link. @@ -9,7 +9,17 @@ import {Avatar, Card, CardActionArea, CardContent, CardMedia, Link, Stack, Typog * @param domain The domain of the link. * @constructor */ -function LinkContent({title, description, faviconSrc, domain}: { title: string; description: string; faviconSrc: string; domain: string }) { +function LinkContent({ + title, + description, + faviconSrc, + domain, +}: { + title: string; + description: string; + faviconSrc: string; + domain: string; +}) { return ( diff --git a/src/utils/artifact-metas.ts b/src/utils/artifact-metas.ts index a2c15d9..53f3068 100644 --- a/src/utils/artifact-metas.ts +++ b/src/utils/artifact-metas.ts @@ -1,6 +1,6 @@ -import {ArtifactMetas} from "../models/artifact-meta-models.ts"; -import artifactMetasString from "../models/artifact-metas.json?raw"; +import { ArtifactMetas } from '../models/artifact-meta-models.ts'; +import artifactMetasString from '../models/artifact-metas.json?raw'; const artifactMetas: ArtifactMetas = JSON.parse(artifactMetasString) as ArtifactMetas; -export default artifactMetas; \ No newline at end of file +export default artifactMetas;