Skip to content

Commit

Permalink
Support the camera use case, but also attaching a photo from the came…
Browse files Browse the repository at this point in the history
…ra roll
  • Loading branch information
mingming-ma committed Dec 12, 2023
1 parent cd6c3d0 commit de63e9c
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/components/PromptForm/ClipIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,7 @@ export default function ClipIcon({ isDisabled = false, onFileSelected }: ClipIco

return (
<>
<Input
type="file"
ref={fileInputRef}
hidden
onChange={handleFileChange}
accept="image/*"
capture="environment"
/>
<Input type="file" ref={fileInputRef} hidden onChange={handleFileChange} accept="image/*" />
<IconButton
onClick={handleClick}
isRound
Expand Down

0 comments on commit de63e9c

Please sign in to comment.