Don't modalize the export drawer on iOS to work around time picker bug (#13575)

This commit is contained in:
Josh Hawkins 2024-09-05 12:49:08 -05:00 committed by GitHub
parent 7e9a7ad49c
commit 5c00ed352c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,7 +13,7 @@ import { GeneralFilterContent } from "../filter/ReviewFilterGroup";
import { toast } from "sonner";
import axios from "axios";
import SaveExportOverlay from "./SaveExportOverlay";
import { isMobile } from "react-device-detect";
import { isIOS, isMobile } from "react-device-detect";
type DrawerMode = "none" | "select" | "export" | "calendar" | "filter";
@ -281,6 +281,7 @@ export default function MobileReviewSettingsDrawer({
onCancel={() => setMode("none")}
/>
<Drawer
modal={!(isIOS && drawerMode == "export")}
open={drawerMode != "none"}
onOpenChange={(open) => {
if (!open) {