diff --git a/apps/website/components/dashboard/DashboardKpiRow.tsx b/apps/website/components/dashboard/DashboardKpiRow.tsx index a886e9901..1742a49a5 100644 --- a/apps/website/components/dashboard/DashboardKpiRow.tsx +++ b/apps/website/components/dashboard/DashboardKpiRow.tsx @@ -1,18 +1,15 @@ -import { Grid } from '@/ui/Grid'; -import { Stack } from '@/ui/Stack'; -import { Text } from '@/ui/Text'; -import { Card } from '@/ui/Card'; - +import { StatGrid } from '@/ui/StatGrid'; + interface KpiItem { label: string; value: string | number; intent?: 'primary' | 'success' | 'warning' | 'critical' | 'high' | 'med' | 'low'; } - + interface DashboardKpiRowProps { items: KpiItem[]; } - + /** * DashboardKpiRow * @@ -20,29 +17,16 @@ interface DashboardKpiRowProps { */ export function DashboardKpiRow({ items }: DashboardKpiRowProps) { return ( - - {items.map((item, index) => ( - - - - {item.label} - - - {item.value} - - - - ))} - + ({ + label: item.label, + value: item.value, + intent: item.intent as any + }))} + /> ); } diff --git a/apps/website/components/teams/CreateTeamForm.tsx b/apps/website/components/teams/CreateTeamForm.tsx index c326f6d2b..5ffc9160a 100644 --- a/apps/website/components/teams/CreateTeamForm.tsx +++ b/apps/website/components/teams/CreateTeamForm.tsx @@ -4,7 +4,7 @@ import { useCreateTeam } from "@/hooks/team/useCreateTeam"; import { Button } from '@/ui/Button'; import { InfoBanner } from '@/ui/InfoBanner'; import { Input } from '@/ui/Input'; -import { Stack } from '@/ui/Stack'; +import { Group } from '@/ui/Group'; import { Text } from '@/ui/Text'; import { TextArea } from '@/ui/TextArea'; import React, { useState } from 'react'; @@ -79,8 +79,8 @@ export function CreateTeamForm({ onCancel, onSuccess, onNavigate }: CreateTeamFo }; return ( - - +
+ setFormData({ ...formData, name: e.target.value })} placeholder="Enter team name..." disabled={createTeamMutation.isPending} - variant={errors.name ? 'error' : 'default'} - errorMessage={errors.name} + error={errors.name} />