Skip to content

Commit

Permalink
Reformat and Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kjy5 authored and github-actions[bot] committed Feb 13, 2024
1 parent dbb9840 commit 6edf25e
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 13 deletions.
14 changes: 7 additions & 7 deletions src/components/link-card.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ export default meta;
type Story = StoryObj<typeof LinkCard>;

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],
},
};
args: {
linkMeta: artifactMetas[9].links[0],
},
};
16 changes: 13 additions & 3 deletions src/components/link-card.tsx
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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 (
<CardContent>
<Stack spacing={2}>
Expand Down
6 changes: 3 additions & 3 deletions src/utils/artifact-metas.ts
Original file line number Diff line number Diff line change
@@ -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;
export default artifactMetas;

0 comments on commit 6edf25e

Please sign in to comment.