refactor: team settings redesign (#12230)

Co-authored-by: sean-brydon <[email protected]>
Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
authored and GitHub committed 2023-11-16 16:18:24 +00:00
1 parent 0b96ef5476
commit a4c1df3658
14 files changed
+698 -728

No files matched your search

@@ -163,9 +163,12 @@ export default function ImageUploader({
return (
<Dialog
onOpenChange={
(opened) => !opened && setFile(null) // unset file on close
}>
onOpenChange={(opened) => {
// unset file on close
if (!opened) {
setFile(null);
}
}}>
<DialogTrigger asChild>
<Button color={triggerButtonColor ?? "secondary"} type="button" className="py-1 text-sm">
{buttonMsg}
@@ -201,10 +204,11 @@ export default function ImageUploader({
</div>
</div>
<DialogFooter className="relative">
<DialogClose color="minimal">{t("cancel")}</DialogClose>
<DialogClose color="primary" onClick={() => showCroppedImage(croppedAreaPixels)}>
{t("save")}
</DialogClose>
<DialogClose color="minimal">{t("cancel")}</DialogClose>
</DialogFooter>
</DialogContent>
</Dialog>