diff --git a/packages/app/src/screens/new-workspace-screen.tsx b/packages/app/src/screens/new-workspace-screen.tsx index 1bcf7ac48..1caab7b14 100644 --- a/packages/app/src/screens/new-workspace-screen.tsx +++ b/packages/app/src/screens/new-workspace-screen.tsx @@ -9,6 +9,7 @@ import { useQuery } from "@tanstack/react-query"; import { ChevronDown, GitBranch, GitPullRequest } from "lucide-react-native"; import { Composer } from "@/components/composer"; import { splitComposerAttachmentsForSubmit } from "@/components/composer-attachments"; +import { FileDropZone } from "@/components/file-drop-zone"; import { Combobox, ComboboxItem } from "@/components/ui/combobox"; import type { ComboboxOption as ComboboxOptionType } from "@/components/ui/combobox"; import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip"; @@ -639,6 +640,9 @@ export function NewWorkspaceScreen({ const handleAddImagesCallback = useCallback((addImages: (images: ImageAttachment[]) => void) => { addImagesRef.current = addImages; }, []); + const handleFilesDropped = useCallback((files: ImageAttachment[]) => { + addImagesRef.current?.(files); + }, []); const renderPickerOption = useCallback( ({ @@ -713,82 +717,84 @@ export function NewWorkspaceScreen({ : "No matching refs."; return ( - - - - - - New workspace - - - {workspaceTitle} - - - - } - leftStyle={styles.headerLeft} - borderless - /> - - - - - - - - - - - {errorMessage ? {errorMessage} : null} + + + + + + + New workspace + + + {workspaceTitle} + + + + } + leftStyle={styles.headerLeft} + borderless + /> + + + + + + + + + + + {errorMessage ? {errorMessage} : null} + - + ); }