Skip to content

Commit

Permalink
Use category badge in wave preview
Browse files Browse the repository at this point in the history
  • Loading branch information
ClumsyVlad committed May 14, 2024
1 parent a35fb0e commit b040bb8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/app/waves/create/preview/wavePreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { urls } from "@/constants/urls";
import { cn } from "@/lib/cn";
import { formatDate } from "@/lib/dates";
import { LOCAL_STORAGE_KEYS } from "@/lib/localStorage";
import { Badge } from "@/components/ui/badge";
import { Button, buttonVariants } from "@/components/ui/button";
import {
Card,
Expand All @@ -15,6 +14,7 @@ import {
CardHeader,
CardTitle,
} from "@/components/ui/card";
import { CategoryBadge } from "@/components/ui/categories/categoryBadge";
import { PageHeader } from "@/components/ui/pageHeader";
import { Separator } from "@/components/ui/separator";
import { CalendarIcon } from "@/components/icons/calendarIcon";
Expand Down Expand Up @@ -56,9 +56,9 @@ export default function PreviewApplication() {
<div className="flex flex-wrap items-center gap-2">
<span className="text-xs font-bold">Categories:</span>
<ul className="flex flex-wrap items-center gap-2">
{validatedWaveData.categories.map(({ name, color }, index) => (
<li key={name + index}>
<Badge variant={color}>{name}</Badge>
{validatedWaveData.categories.map((category, index) => (
<li key={category.name + index}>
<CategoryBadge category={category} />
</li>
))}
</ul>
Expand Down

0 comments on commit b040bb8

Please sign in to comment.