Add close button on info dialog

This commit is contained in:
Reckless_Satoshi 2022-01-30 12:07:13 -08:00
parent 716e838442
commit dff011358c
No known key found for this signature in database
GPG Key ID: 9C4585B561315571
2 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,5 @@
import {Typography, DialogTitle, DialogContent, DialogContentText, Button } from "@mui/material"
import {Typography, DialogActions, DialogContent, Button } from "@mui/material"
import React, { Component } from 'react'
export default class InfoDialog extends Component {
@ -121,6 +121,9 @@ export default class InfoDialog extends Component {
RoboSats</i> will definitely never ask for your robot token.
</p>
</Typography>
<DialogActions>
<Button onClick={this.props.handleCloseInfo}>Close</Button>
</DialogActions>
</DialogContent>
</div>
)

View File

@ -120,7 +120,7 @@ export default class UserGenPage extends Component {
aria-describedby="info-dialog-description"
scroll="paper"
>
<InfoDialog/>
<InfoDialog handleCloseInfo = {this.handleCloseInfo}/>
</Dialog>
)
}