mirror of
https://github.com/baptisteArno/typebot.io.git
synced 2026-06-05 21:04:43 +08:00
parent
dc01e0bb3c
commit
0606fa3d8b
@ -8,6 +8,7 @@ import {
|
||||
Popover,
|
||||
PopoverContent,
|
||||
PopoverTrigger,
|
||||
Portal,
|
||||
Stack,
|
||||
Text,
|
||||
} from "@chakra-ui/react";
|
||||
@ -77,26 +78,28 @@ export const PictureChoiceItemSettings = ({
|
||||
: t("blocks.inputs.picture.itemSettings.image.pick.label")}
|
||||
</Button>
|
||||
</PopoverTrigger>
|
||||
<PopoverContent p="4" w="500px">
|
||||
<ImageUploadContent
|
||||
uploadFileProps={{
|
||||
workspaceId,
|
||||
typebotId,
|
||||
blockId,
|
||||
itemId: item.id,
|
||||
}}
|
||||
defaultUrl={item.pictureSrc}
|
||||
onSubmit={(url) => {
|
||||
updateImage(url);
|
||||
onClose();
|
||||
}}
|
||||
additionalTabs={{
|
||||
giphy: true,
|
||||
unsplash: true,
|
||||
icon: true,
|
||||
}}
|
||||
/>
|
||||
</PopoverContent>
|
||||
<Portal>
|
||||
<PopoverContent p="4" w="500px">
|
||||
<ImageUploadContent
|
||||
uploadFileProps={{
|
||||
workspaceId,
|
||||
typebotId,
|
||||
blockId,
|
||||
itemId: item.id,
|
||||
}}
|
||||
defaultUrl={item.pictureSrc}
|
||||
onSubmit={(url) => {
|
||||
updateImage(url);
|
||||
onClose();
|
||||
}}
|
||||
additionalTabs={{
|
||||
giphy: true,
|
||||
unsplash: true,
|
||||
icon: true,
|
||||
}}
|
||||
/>
|
||||
</PopoverContent>
|
||||
</Portal>
|
||||
</>
|
||||
)}
|
||||
</Popover>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user