fix: Update ImageUploader.tsx (#10319)

Co-authored-by: Udit Takkar <udit.07814802719@cse.mait.ac.in>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
pull/10318/head^2
Mithun Prabhu 2023-07-24 15:43:58 +05:30 committed by GitHub
parent 8de75aebf0
commit 80a1458538
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ import Cropper from "react-easy-crop";
import { useLocale } from "@calcom/lib/hooks/useLocale"; import { useLocale } from "@calcom/lib/hooks/useLocale";
import { Button, Dialog, DialogClose, DialogContent, DialogTrigger } from "../.."; import { Button, Dialog, DialogClose, DialogContent, DialogTrigger, DialogFooter } from "../..";
import { showToast } from "../toast"; import { showToast } from "../toast";
type ReadAsMethod = "readAsText" | "readAsDataURL" | "readAsArrayBuffer" | "readAsBinaryString"; type ReadAsMethod = "readAsText" | "readAsDataURL" | "readAsArrayBuffer" | "readAsBinaryString";
@ -210,12 +210,12 @@ export default function ImageUploader({
</label> </label>
</div> </div>
</div> </div>
<div className="mt-5 flex flex-row-reverse gap-x-2 sm:mt-4"> <DialogFooter>
<DialogClose color="primary" onClick={() => showCroppedImage(croppedAreaPixels)}> <DialogClose color="primary" onClick={() => showCroppedImage(croppedAreaPixels)}>
{t("save")} {t("save")}
</DialogClose> </DialogClose>
<DialogClose color="minimal">{t("cancel")}</DialogClose> <DialogClose color="minimal">{t("cancel")}</DialogClose>
</div> </DialogFooter>
</DialogContent> </DialogContent>
</Dialog> </Dialog>
); );