aboutsummaryrefslogtreecommitdiff
path: root/apps/website/src/components/logos/Logo.astro
diff options
context:
space:
mode:
authorPauline <git@ethanlibs.co>2023-12-20 01:58:22 -0500
committerPauline <git@ethanlibs.co>2023-12-20 01:58:22 -0500
commit8e85be96a154b371b4cf1fb1924155d96150f949 (patch)
tree22edab0f259bbdba76d1c8fb790ff2c6cf65db60 /apps/website/src/components/logos/Logo.astro
parent64537e64852193cb735ee4853c0f8d07a5222030 (diff)
downloadNexus-8e85be96a154b371b4cf1fb1924155d96150f949.tar.gz
Nexus-8e85be96a154b371b4cf1fb1924155d96150f949.tar.bz2
Nexus-8e85be96a154b371b4cf1fb1924155d96150f949.zip
chore(lint): bump deps and fix linting/format
Diffstat (limited to 'apps/website/src/components/logos/Logo.astro')
-rw-r--r--apps/website/src/components/logos/Logo.astro7
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/website/src/components/logos/Logo.astro b/apps/website/src/components/logos/Logo.astro
index ad41aad..52bfe34 100644
--- a/apps/website/src/components/logos/Logo.astro
+++ b/apps/website/src/components/logos/Logo.astro
@@ -10,19 +10,18 @@ export interface Props extends HTMLAttributes<'svg'> {
const {
logo,
- silent = false,
size = undefined,
...attr
} = Astro.props;
let svg: string | undefined;
try {
- if (logo == undefined)
+ if (logo === undefined)
return;
const dir = '../../../public/media';
svg = (await import(`${dir}/${logo.replaceAll('.', '/')}.svg?raw` /* @vite-ignore */)).default;
- if (svg == undefined)
+ if (svg === undefined)
return;
if (typeof size == 'number' || Array.isArray(size)) {
@@ -52,4 +51,4 @@ catch (err) {
---
- <Fragment set:html={svg} />
+ <Fragment set:html={svg}/>