Remove switch camera action from dock
This commit is contained in:
@@ -27,7 +27,6 @@ import {
|
|||||||
ImagePlus,
|
ImagePlus,
|
||||||
Info,
|
Info,
|
||||||
Loader2,
|
Loader2,
|
||||||
RotateCcw,
|
|
||||||
Timer,
|
Timer,
|
||||||
Sparkles,
|
Sparkles,
|
||||||
FlipHorizontal,
|
FlipHorizontal,
|
||||||
@@ -604,13 +603,6 @@ const [submitToLive, setSubmitToLive] = useState(true);
|
|||||||
setPreferences((prev) => ({ ...prev, countdownEnabled: !prev.countdownEnabled }));
|
setPreferences((prev) => ({ ...prev, countdownEnabled: !prev.countdownEnabled }));
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
const handleSwitchCamera = useCallback(() => {
|
|
||||||
setPreferences((prev) => ({
|
|
||||||
...prev,
|
|
||||||
facingMode: prev.facingMode === 'user' ? 'environment' : 'user',
|
|
||||||
}));
|
|
||||||
}, []);
|
|
||||||
|
|
||||||
const handleToggleFlashPreference = useCallback(() => {
|
const handleToggleFlashPreference = useCallback(() => {
|
||||||
setPreferences((prev) => ({ ...prev, flashPreferred: !prev.flashPreferred }));
|
setPreferences((prev) => ({ ...prev, flashPreferred: !prev.flashPreferred }));
|
||||||
}, []);
|
}, []);
|
||||||
@@ -1597,19 +1589,7 @@ const renderWithDialog = (content: ReactNode, wrapperClassName = 'space-y-6 pb-[
|
|||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="flex items-center justify-end">
|
<div className="flex items-center justify-end" aria-hidden />
|
||||||
<Button
|
|
||||||
variant="ghost"
|
|
||||||
size="icon"
|
|
||||||
className={actionIconButtonBase}
|
|
||||||
onClick={handleSwitchCamera}
|
|
||||||
disabled={demoReadOnly}
|
|
||||||
title={t('upload.switchCamera')}
|
|
||||||
>
|
|
||||||
<RotateCcw className="h-6 w-6" />
|
|
||||||
<span className="sr-only">{t('upload.switchCamera')}</span>
|
|
||||||
</Button>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="mt-4 flex items-center justify-between gap-3">
|
<div className="mt-4 flex items-center justify-between gap-3">
|
||||||
|
|||||||
Reference in New Issue
Block a user