We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f78428 commit 30527beCopy full SHA for 30527be
1 file changed
src/components/UpdateModal.astro
@@ -85,7 +85,7 @@ function parseUpdate(update: string) {
85
return (
86
<li class="flex items-start gap-2">
87
{type && (
88
- <span class={`inline-flex items-center px-2 py-0.5 text-xs font-medium rounded ${badgeStyles[type] || 'bg-gray-100 text-gray-800 dark:bg-gray-900 dark:text-gray-300'}`}>
+ <span class={`inline-flex items-center px-2 py-0.5 text-xs font-medium rounded ${badgeStyles[type as keyof typeof badgeStyles] || 'bg-gray-100 text-gray-800 dark:bg-gray-900 dark:text-gray-300'}`}>
89
{type}
90
</span>
91
)}
0 commit comments