Skip to content

Commit

Permalink
overflow hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
melpsh committed Oct 20, 2024
1 parent e5b87d4 commit 47f154c
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions Clients/src/presentation/components/Modals/DeleteAccount/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const DeleteAccountConfirmation: React.FC<DeleteAccountConfirmationProps> = ({
height: "240px", // Custom height
maxWidth: "none", // Disable the default maxWidth behavior
padding: "32px",
overflowY: "hidden",
overflowY: 'none'
},
}}
>
Expand All @@ -74,8 +74,11 @@ const DeleteAccountConfirmation: React.FC<DeleteAccountConfirmationProps> = ({
>
{"Are you sure you want to delete this account?"}
</DialogTitle>
<DialogContent sx={{ padding: 0 }}>
<DialogContentText id="alert-dialog-description" sx={{ padding: 0 }}>
<DialogContent sx={{ padding: 0, overflowY: 'hidden' }}>
<DialogContentText
id="alert-dialog-description"
sx={{ padding: 0, overflowY: 'hidden' }}
>
When you delete this file, all the links associated with the file
will also be removed. Note that this is a non-reversible action.
</DialogContentText>
Expand All @@ -93,7 +96,13 @@ const DeleteAccountConfirmation: React.FC<DeleteAccountConfirmationProps> = ({
</Dialog>

{/* Conditionally render banner when isBannerOpen is true */}
{isBannerOpen && <Banner onClose={onClose} bannerText={'This account is removed.'} bannerWidth ={'209px'}/>}
{isBannerOpen && (
<Banner
onClose={onClose}
bannerText={"This account is removed."}
bannerWidth={"209px"}
/>
)}
</>
);
};
Expand Down

0 comments on commit 47f154c

Please sign in to comment.