Refactor: Implement Code Splitting

This commit is contained in:
gpt-engineer-app[bot]
2025-10-21 18:31:08 +00:00
parent da0f01a785
commit 70a8534da7
9 changed files with 722 additions and 89 deletions

View File

@@ -8,7 +8,7 @@ import { Button } from '@/components/ui/button';
import { Badge } from '@/components/ui/badge';
import { Separator } from '@/components/ui/separator';
import { Progress } from '@/components/ui/progress';
import { UppyPhotoUpload } from './UppyPhotoUpload';
import { UppyPhotoUploadLazy } from './UppyPhotoUploadLazy';
import { PhotoCaptionEditor, PhotoWithCaption } from './PhotoCaptionEditor';
import { supabase } from '@/integrations/supabase/client';
import { useAuth } from '@/hooks/useAuth';
@@ -340,7 +340,7 @@ export function UppyPhotoSubmissionUpload({
</Badge>
)}
</div>
<UppyPhotoUpload
<UppyPhotoUploadLazy
onFilesSelected={handleFilesSelected}
deferUpload={true}
maxFiles={10}