Web:Components:Modal-Dialog: Added id attribute for closeButton component

This commit is contained in:
Akmal Isomadinov 2022-11-09 10:34:52 +05:00
parent d75066888a
commit 6098f69cf4
2 changed files with 3 additions and 1 deletions

View File

@ -48,12 +48,13 @@ const StyledCloseButtonWrapper = styled.div`
StyledCloseButtonWrapper.defaultProps = { theme: Base };
const CloseButton = ({ currentDisplayType, zIndex, onClick }) => {
const CloseButton = ({ id, currentDisplayType, zIndex, onClick }) => {
return (
<StyledCloseButtonWrapper
zIndex={zIndex}
onClick={onClick}
currentDisplayType={currentDisplayType}
id={`${id}-close-btn`}
>
<IconButton
size="17px"

View File

@ -78,6 +78,7 @@ const Modal = ({
<CloseButton
currentDisplayType={currentDisplayType}
onClick={onClose}
id={id}
/>
{isLoading ? (
currentDisplayType === "modal" ? (