Add fixed bugs tab to versions

This commit is contained in:
Misode
2022-11-09 19:08:25 +01:00
parent 46347f1974
commit 6312dfbc71
8 changed files with 84 additions and 7 deletions
+15
View File
@@ -0,0 +1,15 @@
import type { Bugfix } from '../../services/DataFetcher.js'
import { Badge } from '../Badge.jsx'
import { Card } from '../Card.jsx'
interface Props {
fix: Bugfix
}
export function Issue({ fix }: Props) {
return <Card overlay={fix.id} link={`https://bugs.mojang.com/browse/${fix.id}`}>
<div class="changelog-content">{fix.summary}</div>
<div class="badges-list">
{fix.categories.map(c => <Badge label={c} />)}
</div>
</Card>
}