Skip to content

Commit

Permalink
feat: add badge indicating kit active status to home page
Browse files Browse the repository at this point in the history
  • Loading branch information
tomcur committed Mar 19, 2024
1 parent 88730b6 commit 75fb2b6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pages/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import HeadTitle from "../Components/HeadTitle";
import { rtkApi } from "~/services/astroplant";
import { KitAvatar } from "~/Components/KitAvatar";
import { Badge } from "~/Components/Badge";
import { KitActiveBadge } from "~/Components/KitActiveBadge";

import style from "./Home.module.css";

Expand Down Expand Up @@ -60,6 +61,7 @@ export default function Home() {
<Link to={`/kit/${activeKit.serial}`}>
<h3>{activeKit.name}</h3>
</Link>
<KitActiveBadge kit={activeKit} />
{activeKit.privacyPublicDashboard && (
<Badge variant="muted" size="small" text="Public" />
)}
Expand Down

0 comments on commit 75fb2b6

Please sign in to comment.