From 2173eb14462aa551933fd9aef7c8d563a3f565ad Mon Sep 17 00:00:00 2001 From: "Khoa.vo" Date: Wed, 7 Jan 2026 19:25:07 +0700 Subject: [PATCH] fix: Add provider to editSource type in Gallery.tsx --- components/Gallery.tsx | 2 +- data/prompts.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/Gallery.tsx b/components/Gallery.tsx index 5a7eca5..fd58e3b 100644 --- a/components/Gallery.tsx +++ b/components/Gallery.tsx @@ -32,7 +32,7 @@ export function Gallery() { const [videoModalOpen, setVideoModalOpen] = React.useState(false); const [videoSource, setVideoSource] = React.useState<{ data: string, prompt: string, provider?: string } | null>(null); const [editModalOpen, setEditModalOpen] = React.useState(false); - const [editSource, setEditSource] = React.useState<{ data: string, prompt: string } | null>(null); + const [editSource, setEditSource] = React.useState<{ data: string, prompt: string, provider?: 'whisk' | 'meta' } | null>(null); const [editPromptValue, setEditPromptValue] = React.useState(''); const [videoPromptValue, setVideoPromptValue] = React.useState(''); const [useSourceImage, setUseSourceImage] = React.useState(true); diff --git a/data/prompts.json b/data/prompts.json index 3ea0148..0b9707c 100644 --- a/data/prompts.json +++ b/data/prompts.json @@ -1,6 +1,6 @@ { - "last_updated": "2026-01-07T11:49:35.035Z", - "lastSync": 1767786575035, + "last_updated": "2026-01-07T12:22:54.434Z", + "lastSync": 1767788574434, "categories": { "style": [ "Illustration",