Web:Components:Modal-Dialog: Added id attribute for closeButton component
This commit is contained in:
parent
d75066888a
commit
6098f69cf4
@ -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"
|
||||
|
@ -78,6 +78,7 @@ const Modal = ({
|
||||
<CloseButton
|
||||
currentDisplayType={currentDisplayType}
|
||||
onClick={onClose}
|
||||
id={id}
|
||||
/>
|
||||
{isLoading ? (
|
||||
currentDisplayType === "modal" ? (
|
||||
|
Loading…
Reference in New Issue
Block a user