Skip to content

Commit 5d2594b

Browse files
committed
🐛 Fix CI
1 parent c6767e0 commit 5d2594b

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/components/CustomAside.astro

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,20 @@ const icons = {
1414
danger: 'error',
1515
thanks: 'heart',
1616
} as const;
17+
const labels = {
18+
note: 'Note',
19+
tip: 'Tip',
20+
caution: 'Caution',
21+
danger: 'Danger',
22+
thanks: 'Thank you!',
23+
} as const;
1724
1825
interface Props {
1926
type?: (typeof asideVariants)[number];
2027
title?: string;
21-
icon?: string;
2228
}
2329
24-
let { type = 'note', title, icon } = Astro.props;
30+
let { type = 'note', title } = Astro.props;
2531
2632
if (!asideVariants.includes(type)) {
2733
throw new AstroError(
@@ -32,7 +38,7 @@ if (!asideVariants.includes(type)) {
3238
}
3339
3440
if (!title) {
35-
title = Astro.locals.t(`aside.${type}`);
41+
title = labels[type];
3642
}
3743
---
3844

0 commit comments

Comments
 (0)