Skip to content
Snippets Groups Projects
Commit 73fb60be authored by Yoan VALLET's avatar Yoan VALLET
Browse files

feat: display modal border for unlocked ecogesture

parent b073c812
No related branches found
No related tags found
2 merge requests!15Merge Dev to Master,!13Features/add news icons
......@@ -17,12 +17,11 @@ const Modal: React.FC<ModalProps> = ({
children,
yellowBorder,
}: ModalProps) => {
const yellow = yellowBorder ? yellowBorder : ''
return (
<div className={`modal-overlay ${open ? 'modal-opened' : ''}`}>
<div
className={`modal-box ${
border ? 'modal-box-bordered' : ''
}${yellowBorder}`}
className={`modal-box ${border ? 'modal-box-bordered' : ''} ${yellow}`}
>
<StyledIconButton
className="modal-close-button"
......
......@@ -106,13 +106,6 @@ const EcogesturesList: React.FC<EcogesturesListProps> = ({
opened={openEcogestureModal}
ecogesture={selectedEcogesture}
handleCloseClick={handleCloseClick}
border={
selectedEcogesture
? selectedEcogesture.unlocked
? selectedEcogesture.unlocked
: false
: false
}
/>
</div>
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment