Skip to content

Commit

Permalink
⚡ fix blueprint type add version
Browse files Browse the repository at this point in the history
  • Loading branch information
zcubbs committed May 20, 2024
1 parent 5fbbba4 commit 96c3130
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions web/start/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export const API_BASE_URL =
interface Blueprint {
type: string;
spec: any;
version: string;
}

type FetchBlueprintsResponse = {
Expand Down
10 changes: 5 additions & 5 deletions web/start/src/components/BlueprintTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ const BlueprintTile: React.FC<BlueprintTileProps> = ({blueprint}) => {

const getColoredBadge = () => {
if (blueprint.type === 'built-in') {
return <Badge variant="secondary" className="text-sm">Built-in</Badge>;
return <Badge variant="secondary">Built-in</Badge>;
} else if (blueprint.type === 'plugin') {
return <Badge variant="secondary" className="text-sm">Plugin</Badge>;
return <Badge variant="secondary">Plugin</Badge>;
} else if (blueprint.type === 'registrar') {
return <Badge variant="secondary" className="text-sm">Registrar</Badge>;
return <Badge variant="secondary">Registrar</Badge>;
} else {
return <Badge variant="outline" className="text-sm">Unknown</Badge>;
return <Badge variant="outline">Unknown</Badge>;
}
}

Expand All @@ -73,7 +73,7 @@ const BlueprintTile: React.FC<BlueprintTileProps> = ({blueprint}) => {
<div className="flex items-center justify-between col-span-2">
<div className="flex items-center">
{getColoredBadge()}
<Badge variant="secondary" className="ml-2 fw-bold text-sm">
<Badge variant="secondary" className="ml-2 fw-bold">
{blueprint.version}
</Badge>
</div>
Expand Down

0 comments on commit 96c3130

Please sign in to comment.