diff --git a/src/components/cycle/use-cycle.ts b/src/components/cycle/use-cycle.ts index 213a2b193..7b561dc7e 100644 --- a/src/components/cycle/use-cycle.ts +++ b/src/components/cycle/use-cycle.ts @@ -11,7 +11,6 @@ */ import { useMemo } from "react"; import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query"; -import { toast } from "sonner"; import { showErrorToast } from "@/lib/errors/error-toast"; import { diff --git a/src/components/documents/document-link-picker.tsx b/src/components/documents/document-link-picker.tsx index 59076672f..aadd54e5b 100644 --- a/src/components/documents/document-link-picker.tsx +++ b/src/components/documents/document-link-picker.tsx @@ -16,7 +16,6 @@ import { useDocumentDate } from "@/components/documents/use-document-date"; import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query"; import { Check, Search } from "lucide-react"; import { useEffect, useRef, useState } from "react"; -import { toast } from "sonner"; import { showErrorToast } from "@/lib/errors/error-toast"; import { Input } from "@/components/ui/input"; diff --git a/src/components/encounters/encounter-sheet.tsx b/src/components/encounters/encounter-sheet.tsx index 463442272..654c6ac8f 100644 --- a/src/components/encounters/encounter-sheet.tsx +++ b/src/components/encounters/encounter-sheet.tsx @@ -33,7 +33,6 @@ */ import { useState } from "react"; import { Trash2 } from "lucide-react"; -import { toast } from "sonner"; import { showErrorToast } from "@/lib/errors/error-toast"; import { diff --git a/src/components/insights/coach-panel/coach-conversation.tsx b/src/components/insights/coach-panel/coach-conversation.tsx index 0ac00a043..a0092b46b 100644 --- a/src/components/insights/coach-panel/coach-conversation.tsx +++ b/src/components/insights/coach-panel/coach-conversation.tsx @@ -8,7 +8,6 @@ import { useQueryClient, } from "@tanstack/react-query"; import { Paperclip, Sparkles } from "lucide-react"; -import { toast } from "sonner"; import { showErrorToast } from "@/lib/errors/error-toast"; import { cn } from "@/lib/utils"; diff --git a/src/components/insights/coach-panel/copy-table-button.tsx b/src/components/insights/coach-panel/copy-table-button.tsx index da1995278..4320cfa5e 100644 --- a/src/components/insights/coach-panel/copy-table-button.tsx +++ b/src/components/insights/coach-panel/copy-table-button.tsx @@ -11,7 +11,6 @@ */ import { useCallback, useEffect, useRef, useState } from "react"; import { Check, Copy } from "lucide-react"; -import { toast } from "sonner"; import { showErrorToast } from "@/lib/errors/error-toast"; import { diff --git a/src/components/insights/coach-panel/memory-note.tsx b/src/components/insights/coach-panel/memory-note.tsx index 24b04f4b0..e07cc3a78 100644 --- a/src/components/insights/coach-panel/memory-note.tsx +++ b/src/components/insights/coach-panel/memory-note.tsx @@ -16,7 +16,6 @@ * no line behind. */ import { useState } from "react"; -import { toast } from "sonner"; import { showErrorToast } from "@/lib/errors/error-toast"; import { Button } from "@/components/ui/button"; diff --git a/src/components/insights/coach-panel/reminder-suggestion-card.tsx b/src/components/insights/coach-panel/reminder-suggestion-card.tsx index 476c6277a..9344c5868 100644 --- a/src/components/insights/coach-panel/reminder-suggestion-card.tsx +++ b/src/components/insights/coach-panel/reminder-suggestion-card.tsx @@ -2,7 +2,6 @@ import { useState } from "react"; import { useMutation, useQueryClient } from "@tanstack/react-query"; -import { toast } from "sonner"; import { showErrorToast } from "@/lib/errors/error-toast"; import { BellPlus, Check, Loader2 } from "lucide-react"; diff --git a/src/components/insights/coach-panel/sources-rail.tsx b/src/components/insights/coach-panel/sources-rail.tsx index a55fbbd20..f53812d38 100644 --- a/src/components/insights/coach-panel/sources-rail.tsx +++ b/src/components/insights/coach-panel/sources-rail.tsx @@ -2,7 +2,6 @@ import { useState } from "react"; import { Eye, Loader2, Target } from "lucide-react"; -import { toast } from "sonner"; import { showErrorToast } from "@/lib/errors/error-toast"; import { Label } from "@/components/ui/label"; diff --git a/src/components/insights/coach-panel/suggested-action-card.tsx b/src/components/insights/coach-panel/suggested-action-card.tsx index 5ba5cf205..9e528a079 100644 --- a/src/components/insights/coach-panel/suggested-action-card.tsx +++ b/src/components/insights/coach-panel/suggested-action-card.tsx @@ -2,7 +2,6 @@ import { useState } from "react"; import { useMutation, useQueryClient } from "@tanstack/react-query"; -import { toast } from "sonner"; import { showErrorToast } from "@/lib/errors/error-toast"; import { Check, Loader2, Sparkles } from "lucide-react"; diff --git a/src/components/insights/coach-panel/use-coach.ts b/src/components/insights/coach-panel/use-coach.ts index c0c77d30a..cedd31787 100644 --- a/src/components/insights/coach-panel/use-coach.ts +++ b/src/components/insights/coach-panel/use-coach.ts @@ -15,7 +15,6 @@ import { useQueryClient, } from "@tanstack/react-query"; import type { QueryClient, QueryKey } from "@tanstack/react-query"; -import { toast } from "sonner"; import { showErrorToast } from "@/lib/errors/error-toast"; import type { diff --git a/src/components/insights/pattern-dismiss-action.tsx b/src/components/insights/pattern-dismiss-action.tsx index 9b00478ab..88075d434 100644 --- a/src/components/insights/pattern-dismiss-action.tsx +++ b/src/components/insights/pattern-dismiss-action.tsx @@ -3,7 +3,6 @@ import { QueryClientContext, type QueryClient } from "@tanstack/react-query"; import { EyeOff, RotateCcw, X } from "lucide-react"; import { useContext, useReducer, useState } from "react"; -import { toast } from "sonner"; import { showErrorToast } from "@/lib/errors/error-toast"; import { Button } from "@/components/ui/button"; diff --git a/src/components/labs/ocr-review-dialog.tsx b/src/components/labs/ocr-review-dialog.tsx index df911daac..b88947659 100644 --- a/src/components/labs/ocr-review-dialog.tsx +++ b/src/components/labs/ocr-review-dialog.tsx @@ -13,7 +13,6 @@ import { DocumentReadingConsentPrompt } from "@/components/ai/document-reading-c import { useEffect, useId, useMemo, useRef, useState } from "react"; import { AlertCircle, Loader2, ScanLine, Upload } from "lucide-react"; -import { toast } from "sonner"; import { showErrorToast } from "@/lib/errors/error-toast"; import { toastWrittenOutcome } from "@/components/outcome/outcome-toast"; diff --git a/src/components/medications/detail/efficacy/efficacy-tab.tsx b/src/components/medications/detail/efficacy/efficacy-tab.tsx index cde93df12..a6a7fbcdb 100644 --- a/src/components/medications/detail/efficacy/efficacy-tab.tsx +++ b/src/components/medications/detail/efficacy/efficacy-tab.tsx @@ -13,7 +13,6 @@ import { useMemo, useState } from "react"; import dynamic from "next/dynamic"; import { Activity, TrendingUp } from "lucide-react"; import { useQuery, useQueryClient } from "@tanstack/react-query"; -import { toast } from "sonner"; import { showErrorToast } from "@/lib/errors/error-toast"; import { MedicationDetailSection } from "@/components/medications/medication-detail-section"; diff --git a/src/components/medications/glp1-medication-card.tsx b/src/components/medications/glp1-medication-card.tsx index 06e430cb8..cf4068cdf 100644 --- a/src/components/medications/glp1-medication-card.tsx +++ b/src/components/medications/glp1-medication-card.tsx @@ -6,7 +6,6 @@ import { } from "@/components/medications/course-fields"; import { useEffect, useReducer, useState } from "react"; import { useQuery, useQueryClient } from "@tanstack/react-query"; -import { toast } from "sonner"; import { showErrorToast } from "@/lib/errors/error-toast"; import { MedicationCardMenu } from "@/components/medications/medication-card-menu"; diff --git a/src/components/medications/log-intake-dialog.tsx b/src/components/medications/log-intake-dialog.tsx index bcc7d306e..e985ab0b2 100644 --- a/src/components/medications/log-intake-dialog.tsx +++ b/src/components/medications/log-intake-dialog.tsx @@ -23,7 +23,6 @@ import { useActiveRecordName } from "@/hooks/use-record-capabilities"; import { useId, useMemo, useState } from "react"; import { useQueryClient } from "@tanstack/react-query"; import { Loader2 } from "lucide-react"; -import { toast } from "sonner"; import { showErrorToast } from "@/lib/errors/error-toast"; import { Button } from "@/components/ui/button"; diff --git a/src/components/medications/medication-card.tsx b/src/components/medications/medication-card.tsx index 07e73bbf8..b7c5a2d55 100644 --- a/src/components/medications/medication-card.tsx +++ b/src/components/medications/medication-card.tsx @@ -6,7 +6,6 @@ import { } from "@/components/medications/course-fields"; import { useState, useEffect, useReducer } from "react"; import { useQuery, useQueryClient } from "@tanstack/react-query"; -import { toast } from "sonner"; import { showErrorToast } from "@/lib/errors/error-toast"; import { useMedicationIntake } from "@/components/medications/use-medication-intake"; import { MedicationCardMenu } from "@/components/medications/medication-card-menu"; diff --git a/src/components/medications/sections/courses-section.tsx b/src/components/medications/sections/courses-section.tsx index 98886eff9..b2edada7f 100644 --- a/src/components/medications/sections/courses-section.tsx +++ b/src/components/medications/sections/courses-section.tsx @@ -14,7 +14,6 @@ import { useState } from "react"; import { useQueryClient } from "@tanstack/react-query"; import { CalendarPlus, Loader2, Pencil, Trash2 } from "lucide-react"; -import { toast } from "sonner"; import { showErrorToast } from "@/lib/errors/error-toast"; import { diff --git a/src/components/medications/side-effects-section.tsx b/src/components/medications/side-effects-section.tsx index a2554c2fe..ad04465a3 100644 --- a/src/components/medications/side-effects-section.tsx +++ b/src/components/medications/side-effects-section.tsx @@ -8,7 +8,6 @@ import { useMutation, useQueryClient, } from "@tanstack/react-query"; -import { toast } from "sonner"; import { showErrorToast } from "@/lib/errors/error-toast"; import { Loader2, Plus, Trash2 } from "lucide-react"; diff --git a/src/components/onboarding/confirm-screen.tsx b/src/components/onboarding/confirm-screen.tsx index fc1012f26..8f0ba95ef 100644 --- a/src/components/onboarding/confirm-screen.tsx +++ b/src/components/onboarding/confirm-screen.tsx @@ -3,7 +3,6 @@ import { useRef, useState } from "react"; import Link from "next/link"; import { useRouter } from "next/navigation"; -import { toast } from "sonner"; import { showErrorToast } from "@/lib/errors/error-toast"; import { BaselineForm } from "@/components/onboarding/baseline-form"; diff --git a/src/components/onboarding/done-screen.tsx b/src/components/onboarding/done-screen.tsx index 58aab06f1..3cb5432ba 100644 --- a/src/components/onboarding/done-screen.tsx +++ b/src/components/onboarding/done-screen.tsx @@ -5,7 +5,6 @@ import Link from "next/link"; import { useEffect, useRef, useState } from "react"; import { useRouter } from "next/navigation"; import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query"; -import { toast } from "sonner"; import { showErrorToast } from "@/lib/errors/error-toast"; import { CheckCircle2, diff --git a/src/components/onboarding/first-result-screen.tsx b/src/components/onboarding/first-result-screen.tsx index 86b3f2300..f5d828042 100644 --- a/src/components/onboarding/first-result-screen.tsx +++ b/src/components/onboarding/first-result-screen.tsx @@ -4,7 +4,6 @@ import { useEffect, useMemo, useRef, useState } from "react"; import Link from "next/link"; import { useRouter } from "next/navigation"; import { useQuery } from "@tanstack/react-query"; -import { toast } from "sonner"; import { showErrorToast } from "@/lib/errors/error-toast"; import { Loader2 } from "lucide-react"; diff --git a/src/components/onboarding/question-screen.tsx b/src/components/onboarding/question-screen.tsx index 37577e5ae..244b2bc4d 100644 --- a/src/components/onboarding/question-screen.tsx +++ b/src/components/onboarding/question-screen.tsx @@ -2,7 +2,6 @@ import { useState } from "react"; import { useRouter } from "next/navigation"; -import { toast } from "sonner"; import { showErrorToast } from "@/lib/errors/error-toast"; import { Activity, diff --git a/src/components/onboarding/units-screen.tsx b/src/components/onboarding/units-screen.tsx index 1eb517c62..a1f10d5d0 100644 --- a/src/components/onboarding/units-screen.tsx +++ b/src/components/onboarding/units-screen.tsx @@ -2,7 +2,6 @@ import { useState } from "react"; import { useRouter } from "next/navigation"; -import { toast } from "sonner"; import { showErrorToast } from "@/lib/errors/error-toast"; import { ChoiceChip } from "@/components/onboarding/choice-chip"; diff --git a/src/components/onboarding/welcome-screen.tsx b/src/components/onboarding/welcome-screen.tsx index 1e62c48ee..1a95aaf4e 100644 --- a/src/components/onboarding/welcome-screen.tsx +++ b/src/components/onboarding/welcome-screen.tsx @@ -4,7 +4,6 @@ import { useId, useState } from "react"; import Link from "next/link"; import { useRouter } from "next/navigation"; import { useMutation } from "@tanstack/react-query"; -import { toast } from "sonner"; import { showErrorToast } from "@/lib/errors/error-toast"; import { Button } from "@/components/ui/button"; diff --git a/src/components/practitioners/practitioner-list.tsx b/src/components/practitioners/practitioner-list.tsx index b3232114f..9dfd0f535 100644 --- a/src/components/practitioners/practitioner-list.tsx +++ b/src/components/practitioners/practitioner-list.tsx @@ -13,7 +13,6 @@ */ import { ContactRound, Pencil, Plus, Search, Trash2 } from "lucide-react"; import { useMemo, useState } from "react"; -import { toast } from "sonner"; import { showErrorToast } from "@/lib/errors/error-toast"; import { diff --git a/src/components/practitioners/practitioner-sheet.tsx b/src/components/practitioners/practitioner-sheet.tsx index 53e5394d5..f9654f691 100644 --- a/src/components/practitioners/practitioner-sheet.tsx +++ b/src/components/practitioners/practitioner-sheet.tsx @@ -13,7 +13,6 @@ * created back to whoever opened it. */ import { useState } from "react"; -import { toast } from "sonner"; import { showErrorToast } from "@/lib/errors/error-toast"; import { Button } from "@/components/ui/button"; diff --git a/src/components/providers.tsx b/src/components/providers.tsx index 5b10ecbde..947ac9cbf 100644 --- a/src/components/providers.tsx +++ b/src/components/providers.tsx @@ -17,7 +17,6 @@ import { } from "react"; import { I18nProvider, useTranslations } from "@/lib/i18n/context"; import type { Locale } from "@/lib/i18n/config"; -import { toast } from "sonner"; import { showErrorToast } from "@/lib/errors/error-toast"; import { Toaster } from "@/components/ui/sonner"; import { applyThemeColor } from "@/lib/pwa/theme-color"; diff --git a/src/components/records/ai-profile-inclusion-manager.tsx b/src/components/records/ai-profile-inclusion-manager.tsx index 9ad51e11d..176e264bf 100644 --- a/src/components/records/ai-profile-inclusion-manager.tsx +++ b/src/components/records/ai-profile-inclusion-manager.tsx @@ -3,7 +3,6 @@ import { useState } from "react"; import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query"; import { Loader2 } from "lucide-react"; -import { toast } from "sonner"; import { showErrorToast } from "@/lib/errors/error-toast"; import { Button } from "@/components/ui/button"; diff --git a/src/components/records/emergency-profile-manager.tsx b/src/components/records/emergency-profile-manager.tsx index c8223954d..8d7716467 100644 --- a/src/components/records/emergency-profile-manager.tsx +++ b/src/components/records/emergency-profile-manager.tsx @@ -3,7 +3,6 @@ import { useState } from "react"; import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query"; import { Loader2 } from "lucide-react"; -import { toast } from "sonner"; import { showErrorToast } from "@/lib/errors/error-toast"; import { Button } from "@/components/ui/button"; diff --git a/src/components/records/health-profile-facts-manager.tsx b/src/components/records/health-profile-facts-manager.tsx index 4e05393a3..0d405ad34 100644 --- a/src/components/records/health-profile-facts-manager.tsx +++ b/src/components/records/health-profile-facts-manager.tsx @@ -3,7 +3,6 @@ import { useRef, useState } from "react"; import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query"; import { Loader2, Trash2 } from "lucide-react"; -import { toast } from "sonner"; import { showErrorToast } from "@/lib/errors/error-toast"; import { Button } from "@/components/ui/button"; diff --git a/src/components/settings/access/managed-profile-handover.tsx b/src/components/settings/access/managed-profile-handover.tsx index d6fc0efc3..c5a79fcce 100644 --- a/src/components/settings/access/managed-profile-handover.tsx +++ b/src/components/settings/access/managed-profile-handover.tsx @@ -2,7 +2,6 @@ import { useState } from "react"; import { Check, Copy, Loader2 } from "lucide-react"; -import { toast } from "sonner"; import { showErrorToast } from "@/lib/errors/error-toast"; import { toastWrittenOutcome } from "@/components/outcome/outcome-toast"; diff --git a/src/components/settings/account-section/setup-card.tsx b/src/components/settings/account-section/setup-card.tsx index 50e4f6f41..768fff45f 100644 --- a/src/components/settings/account-section/setup-card.tsx +++ b/src/components/settings/account-section/setup-card.tsx @@ -1,7 +1,6 @@ "use client"; import { useRouter } from "next/navigation"; -import { toast } from "sonner"; import { showErrorToast } from "@/lib/errors/error-toast"; import { ListChecks, Loader2 } from "lucide-react"; diff --git a/src/components/settings/ai/runtime-actions-row.tsx b/src/components/settings/ai/runtime-actions-row.tsx index c12d86e85..79a2b24f4 100644 --- a/src/components/settings/ai/runtime-actions-row.tsx +++ b/src/components/settings/ai/runtime-actions-row.tsx @@ -6,7 +6,6 @@ import { useState, type ReactNode } from "react"; import { Activity, Loader2, RefreshCw, Sparkles } from "lucide-react"; -import { toast } from "sonner"; import { showErrorToast } from "@/lib/errors/error-toast"; import { Button } from "@/components/ui/button"; diff --git a/src/components/vaccinations/booster-mint-prompt.tsx b/src/components/vaccinations/booster-mint-prompt.tsx index ff7488a06..49707c3ef 100644 --- a/src/components/vaccinations/booster-mint-prompt.tsx +++ b/src/components/vaccinations/booster-mint-prompt.tsx @@ -17,7 +17,6 @@ * already closed by the time this appears. */ import { useState } from "react"; -import { toast } from "sonner"; import { showErrorToast } from "@/lib/errors/error-toast"; import { toastWrittenOutcome } from "@/components/outcome/outcome-toast"; diff --git a/src/components/vaccinations/custom-vaccine-sheet.tsx b/src/components/vaccinations/custom-vaccine-sheet.tsx index 7431a0add..2dc6d4e38 100644 --- a/src/components/vaccinations/custom-vaccine-sheet.tsx +++ b/src/components/vaccinations/custom-vaccine-sheet.tsx @@ -18,7 +18,6 @@ */ import { useState } from "react"; import { Trash2 } from "lucide-react"; -import { toast } from "sonner"; import { showErrorToast } from "@/lib/errors/error-toast"; import { diff --git a/src/components/vaccinations/vaccination-document-suggestion.tsx b/src/components/vaccinations/vaccination-document-suggestion.tsx index 319d19b0a..53a8d4590 100644 --- a/src/components/vaccinations/vaccination-document-suggestion.tsx +++ b/src/components/vaccinations/vaccination-document-suggestion.tsx @@ -18,7 +18,6 @@ */ import { useState } from "react"; import { Check, Syringe } from "lucide-react"; -import { toast } from "sonner"; import { showErrorToast } from "@/lib/errors/error-toast"; import { Button } from "@/components/ui/button"; diff --git a/src/components/vaccinations/vaccination-sheet.tsx b/src/components/vaccinations/vaccination-sheet.tsx index 40dbbd401..8597b1b84 100644 --- a/src/components/vaccinations/vaccination-sheet.tsx +++ b/src/components/vaccinations/vaccination-sheet.tsx @@ -20,7 +20,6 @@ */ import { useState } from "react"; import { Trash2 } from "lucide-react"; -import { toast } from "sonner"; import { showErrorToast } from "@/lib/errors/error-toast"; import { diff --git a/src/hooks/use-account-switch.ts b/src/hooks/use-account-switch.ts index 924073df2..c9e1d80ff 100644 --- a/src/hooks/use-account-switch.ts +++ b/src/hooks/use-account-switch.ts @@ -34,7 +34,6 @@ import { type QueryClient, } from "@tanstack/react-query"; import { useCallback } from "react"; -import { toast } from "sonner"; import { showErrorToast } from "@/lib/errors/error-toast"; import { ApiError, apiPost } from "@/lib/api/api-fetch"; diff --git a/src/hooks/use-auth.ts b/src/hooks/use-auth.ts index fb17c7f50..22a0ce25b 100644 --- a/src/hooks/use-auth.ts +++ b/src/hooks/use-auth.ts @@ -7,7 +7,6 @@ import { type QueryClient, } from "@tanstack/react-query"; import { useRouter } from "next/navigation"; -import { toast } from "sonner"; import { showErrorToast } from "@/lib/errors/error-toast"; import { queryKeys } from "@/lib/query-keys"; import { apiGet, apiFetchRaw, ApiError } from "@/lib/api/api-fetch"; diff --git a/src/lib/queries/use-documents-layout.ts b/src/lib/queries/use-documents-layout.ts index 579bf5ec3..638ba87a9 100644 --- a/src/lib/queries/use-documents-layout.ts +++ b/src/lib/queries/use-documents-layout.ts @@ -5,7 +5,6 @@ import { useQueryClient, type QueryClient, } from "@tanstack/react-query"; -import { toast } from "sonner"; import { showErrorToast } from "@/lib/errors/error-toast"; import { apiGet, apiPut } from "@/lib/api/api-fetch";