File tree Expand file tree Collapse file tree
apps/webapp/app/components/metrics Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { DialogClose } from "@radix-ui/react-dialog" ;
22import { useFetcher , useNavigate } from "@remix-run/react" ;
3- import { IconChartHistogram } from "@tabler/icons-react" ;
3+ import { IconCheck } from "@tabler/icons-react" ;
44import { useEffect , useState } from "react" ;
55import { useEnvironment } from "~/hooks/useEnvironment" ;
66import {
@@ -138,7 +138,11 @@ export function SaveToDashboardDialog({
138138 : "text-text-dimmed hover:bg-charcoal-750 hover:text-text-bright"
139139 ) }
140140 >
141- < IconChartHistogram className = "size-4 shrink-0 text-text-dimmed" />
141+ { selectedDashboardId === dashboard . friendlyId ? (
142+ < IconCheck className = "size-4 shrink-0 text-green-500" />
143+ ) : (
144+ < span className = "size-4 shrink-0" />
145+ ) }
142146 < span className = "flex-1 truncate" > { dashboard . title } </ span >
143147 < span
144148 className = { cn (
You can’t perform that action at this time.
0 commit comments