add close button to all modals

This commit is contained in:
keyan 2022-03-10 13:51:26 -06:00
parent 3f59d02c91
commit f35d714c70
5 changed files with 22 additions and 15 deletions

View File

@ -34,6 +34,7 @@ export function FundErrorModal () {
show={error}
onHide={() => setError(false)}
>
<div className='modal-close' onClick={() => setError(false)}>X</div>
<Modal.Body>
<p className='font-weight-bolder'>you have no sats</p>
<div className='d-flex justify-content-end'>

View File

@ -50,6 +50,7 @@ export function ItemActModal () {
setItem(null)
}}
>
<div className='modal-close' onClick={() => setItem(null)}>X</div>
<Modal.Body>
<Form
initial={{

View File

@ -94,7 +94,7 @@ export default function JobForm ({ item, sub }) {
show={info}
onHide={() => setInfo(false)}
>
<div className={styles.close} onClick={() => setInfo(false)}>X</div>
<div className='modal-close' onClick={() => setInfo(false)}>X</div>
<Modal.Body>
<ol className='font-weight-bold'>
<li>The higher your bid the higher your job will rank</li>

View File

@ -59,6 +59,25 @@ $tooltip-bg: #5c8001;
}
}
.modal-close {
cursor: pointer;
display: flex;
margin-left: auto;
padding-top: 1rem;
padding-right: 1.5rem;
font-family: "lightning";
font-size: 150%;
line-height: 1rem;
}
.modal-close:hover {
opacity: 0.7;
}
.modal-close + .modal-body {
padding-top: 0.5rem;
}
.text-muted {
color: var(--theme-grey) !important;
}

View File

@ -1,17 +1,3 @@
.close {
cursor: pointer;
display: flex;
margin-left: auto;
padding-top: 1rem;
padding-right: 1.5rem;
font-family: 'lightning';
font-size: 150%;
}
.close:hover {
opacity: 0.7;
}
.inlineCheckGroup {
margin-left: .5rem;
display: flex;