fix: EditLocationDialog footer positioning and structure (#19335)
* fix: EditLocationDialog footer positioning and structure * fix: make RescheduleDialog footer layout and button structure right * fix: input dialogue glitch now works great * made tests happy --------- Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
1 parent
649faf4ff6
commit
2d9a3bd741
4 files changed
+43
-43
No files matched your search
@@ -61,17 +61,19 @@ export const AddGuestsDialog = (props: IAddGuestsDialog) => {
|
||||
<Dialog open={isOpenDialog} onOpenChange={setIsOpenDialog}>
|
||||
<DialogContent enableOverflow>
|
||||
<div className="flex flex-row space-x-3">
|
||||
<div className="bg-subtle flex h-10 w-10 flex-shrink-0 justify-center rounded-full ">
|
||||
<div className="bg-subtle flex h-10 w-10 flex-shrink-0 justify-center rounded-full">
|
||||
<Icon name="user-plus" className="m-auto h-6 w-6" />
|
||||
</div>
|
||||
<div className="w-full pt-1">
|
||||
<DialogHeader title={t("additional_guests")} />
|
||||
<MultiEmail
|
||||
label={t("add_emails")}
|
||||
value={multiEmailValue}
|
||||
readOnly={false}
|
||||
setValue={setMultiEmailValue}
|
||||
/>
|
||||
<div className="bg-default">
|
||||
<MultiEmail
|
||||
label={t("add_emails")}
|
||||
value={multiEmailValue}
|
||||
readOnly={false}
|
||||
setValue={setMultiEmailValue}
|
||||
/>
|
||||
</div>
|
||||
|
||||
{isInvalidEmail && (
|
||||
<div className="my-4 flex text-sm text-red-700">
|
||||
@@ -83,24 +85,23 @@ export const AddGuestsDialog = (props: IAddGuestsDialog) => {
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
|
||||
<DialogFooter>
|
||||
<Button
|
||||
onClick={() => {
|
||||
setMultiEmailValue([""]);
|
||||
setIsInvalidEmail(false);
|
||||
setIsOpenDialog(false);
|
||||
}}
|
||||
type="button"
|
||||
color="secondary">
|
||||
{t("cancel")}
|
||||
</Button>
|
||||
<Button data-testid="add_members" loading={addGuestsMutation.isPending} onClick={handleAdd}>
|
||||
{t("add")}
|
||||
</Button>
|
||||
</DialogFooter>
|
||||
</div>
|
||||
</div>
|
||||
<DialogFooter showDivider className="mt-8">
|
||||
<Button
|
||||
onClick={() => {
|
||||
setMultiEmailValue([""]);
|
||||
setIsInvalidEmail(false);
|
||||
setIsOpenDialog(false);
|
||||
}}
|
||||
type="button"
|
||||
color="secondary">
|
||||
{t("cancel")}
|
||||
</Button>
|
||||
<Button data-testid="add_members" loading={addGuestsMutation.isPending} onClick={handleAdd}>
|
||||
{t("add")}
|
||||
</Button>
|
||||
</DialogFooter>
|
||||
</DialogContent>
|
||||
</Dialog>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user