diff --git a/client/src/pages/mobile/new-reel.tsx b/client/src/pages/mobile/new-reel.tsx index e2d6951..1c8e926 100644 --- a/client/src/pages/mobile/new-reel.tsx +++ b/client/src/pages/mobile/new-reel.tsx @@ -1,4 +1,5 @@ import { useState, useCallback, useRef } from "react"; +import { CameraRecorder } from "@/components/camera-recorder"; import { useQuery, useMutation } from "@tanstack/react-query"; import { useLocation } from "wouter"; import { @@ -40,6 +41,8 @@ export default function MobileNewReel() { const cameraInputRef = useRef(null); const audioRef = useRef(null); + const [showCamera, setShowCamera] = useState(false); + // État du workflow const [currentStep, setCurrentStep] = useState('video'); @@ -235,7 +238,7 @@ export default function MobileNewReel() {
-
+ {showCamera && ( + { + uploadMutation.mutate(file); + setShowCamera(false); + }} + onCancel={() => setShowCamera(false)} + /> + )} + {selectedVideo ? (