@@ -13,11 +13,11 @@ import {
1313 DropdownMenuTrigger ,
1414} from "@/components/ui/dropdown-menu" ;
1515import { DataTable } from "@/components/data-table/data-table" ;
16- import { useCallback , useEffect , useMemo , useState , useRef } from "react" ;
16+ import { useCallback , useEffect , useMemo , useState } from "react" ;
1717import { createBrowserWestReferralClient } from "@/lib/supabase/client" ;
1818import { Platform } from "@/lib/platform" ;
1919import { Badge } from "@/components/ui/badge" ;
20- import { ImportFromCustomersDialog } from "@/scaffolds/platform/customer/import-from-customers -dialog" ;
20+ import { CustomerPickerDialog } from "@/scaffolds/platform/customer/customer-picker -dialog" ;
2121import { useDialogState } from "@/components/hooks/use-dialog-state" ;
2222import { MoreHorizontal } from "lucide-react" ;
2323import { OpenInNewWindowIcon } from "@radix-ui/react-icons" ;
@@ -34,7 +34,6 @@ import {
3434 DialogFooter ,
3535 DialogHeader ,
3636 DialogTitle ,
37- DialogTrigger ,
3837} from "@/components/ui/dialog" ;
3938import { Progress } from "@/components/ui/progress" ;
4039
@@ -312,16 +311,19 @@ export function ReferrersTable() {
312311 return res . ok ;
313312 } )
314313 . finally ( ( ) => {
315- // refresh the participants
316314 refresh ( ) ;
317315 } ) ;
318316 } ;
319317
320318 return (
321319 < div >
322- < ImportFromCustomersDialog
320+ < CustomerPickerDialog
323321 key = { importCustomersDialog . refreshkey }
324322 { ...importCustomersDialog . props }
323+ onOpenChange = { ( open ) => {
324+ importCustomersDialog . setOpen ( open ) ;
325+ if ( ! open ) refresh ( ) ;
326+ } }
325327 onImport = { onImport }
326328 />
327329 < ExportDialog
0 commit comments