Skip to content

Commit

Permalink
revert: replicate changes in cover image
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashesh3 committed Feb 6, 2024
1 parent 0d40d7a commit 7c12c89
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Components/Facility/CoverImageEditModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ const CoverImageEditModal = ({
const FACING_MODE_ENVIRONMENT = { exact: "environment" };
const [facingMode, setFacingMode] = useState<any>(FACING_MODE_USER);
const videoConstraints = {
width: { ideal: 4096 },
height: { ideal: 2160 },
width: 1280,
height: 720,
facingMode: "user",
};
const { width } = useWindowDimensions();
Expand Down Expand Up @@ -315,11 +315,11 @@ const CoverImageEditModal = ({
<>
<Webcam
audio={false}
height={720}
screenshotFormat="image/jpeg"
width={1280}
ref={webRef}
videoConstraints={{ ...videoConstraints, facingMode }}
forceScreenshotSourceSize
screenshotQuality={1}
/>
</>
) : (
Expand Down

0 comments on commit 7c12c89

Please sign in to comment.