fix: Add provider to editSource type in Gallery.tsx
Some checks are pending
CI / build (18.x) (push) Waiting to run
CI / build (20.x) (push) Waiting to run

This commit is contained in:
Khoa.vo 2026-01-07 19:25:07 +07:00
parent e69c6ba64d
commit 2173eb1446
2 changed files with 3 additions and 3 deletions

View file

@ -32,7 +32,7 @@ export function Gallery() {
const [videoModalOpen, setVideoModalOpen] = React.useState(false); const [videoModalOpen, setVideoModalOpen] = React.useState(false);
const [videoSource, setVideoSource] = React.useState<{ data: string, prompt: string, provider?: string } | null>(null); const [videoSource, setVideoSource] = React.useState<{ data: string, prompt: string, provider?: string } | null>(null);
const [editModalOpen, setEditModalOpen] = React.useState(false); 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 [editPromptValue, setEditPromptValue] = React.useState('');
const [videoPromptValue, setVideoPromptValue] = React.useState(''); const [videoPromptValue, setVideoPromptValue] = React.useState('');
const [useSourceImage, setUseSourceImage] = React.useState(true); const [useSourceImage, setUseSourceImage] = React.useState(true);

View file

@ -1,6 +1,6 @@
{ {
"last_updated": "2026-01-07T11:49:35.035Z", "last_updated": "2026-01-07T12:22:54.434Z",
"lastSync": 1767786575035, "lastSync": 1767788574434,
"categories": { "categories": {
"style": [ "style": [
"Illustration", "Illustration",