|
@@ -5,19 +5,13 @@ class ConfirmButton extends Component {
|
|
|
const {yes,no,text} = this.props;
|
|
|
return(
|
|
|
<>
|
|
|
- <div style={{
|
|
|
- position:'fixed',
|
|
|
- backgroundColor: 'tomato',
|
|
|
- left:'0',
|
|
|
- right:'0',
|
|
|
- width: '300px',
|
|
|
- height: '150px',
|
|
|
- margin: 'auto',
|
|
|
- zIndex:'2'
|
|
|
- }}>
|
|
|
- <div>{text}</div>
|
|
|
- <button onClick={() => yes()}>Yes</button>
|
|
|
- <button onClick={() => no()}>No</button>
|
|
|
+ <div className = "confirm-button" >
|
|
|
+ <h3 >{text}</h3>
|
|
|
+ <div className="btns">
|
|
|
+ <button className = "btn confirm yes" onClick={() => yes()}>Да</button>
|
|
|
+ <button className = "btn confirm no" onClick={() => no()}>Нет</button>
|
|
|
+ </div>
|
|
|
+
|
|
|
</div>
|
|
|
<div className = "wrap-check-off" onClick={no}/>
|
|
|
</>
|