Skip to content

Commit dda455b

Browse files
committed
Format'
1 parent b57e346 commit dda455b

File tree

3 files changed

+24
-9
lines changed

3 files changed

+24
-9
lines changed

.vscode/settings.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,14 @@
44
"editor.defaultFormatter": "esbenp.prettier-vscode",
55
"typescript.tsdk": "node_modules/typescript/lib",
66
"cSpell.enableFiletypes": ["mdx"],
7-
"files.associations": { "__redirects": "plaintext", "_headers": "plaintext" }
7+
"files.associations": {
8+
"__redirects": "plaintext",
9+
"_headers": "plaintext"
10+
},
11+
"[typescriptreact]": {
12+
"editor.defaultFormatter": "vscode.typescript-language-features"
13+
},
14+
"[astro]": {
15+
"editor.defaultFormatter": "astro-build.astro-vscode"
16+
}
817
}

src/components/ResourcesBySelector.astro

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,15 @@ const props = z.object({
2020
showDescriptions: z.boolean().default(true),
2121
});
2222
23-
const { tags, types, products, directory, filterables, columns, showDescriptions } = props.parse(
24-
Astro.props,
25-
);
23+
const {
24+
tags,
25+
types,
26+
products,
27+
directory,
28+
filterables,
29+
columns,
30+
showDescriptions,
31+
} = props.parse(Astro.props);
2632
2733
const docs = await getCollection("docs");
2834
const videos = await getCollection("stream");

src/components/ResourcesBySelector.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,12 @@ export default function ResourcesBySelector({
112112
<p className="decoration-accent underline decoration-2 underline-offset-4">
113113
{title}
114114
</p>
115-
{ showDescriptions && (
116-
<span className="line-clamp-3" title={page.data.description}>
117-
{page.data.description}
118-
</span>
115+
{showDescriptions && (
116+
<span className="line-clamp-3" title={page.data.description}>
117+
{page.data.description}
118+
</span>
119119
)
120-
}
120+
}
121121
</a>
122122
);
123123
})}

0 commit comments

Comments
 (0)