mirror of
https://github.com/RoboSats/robosats.git
synced 2024-12-13 10:56:24 +00:00
Add close button on info dialog
This commit is contained in:
parent
716e838442
commit
dff011358c
@ -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>
|
||||
)
|
||||
|
@ -120,7 +120,7 @@ export default class UserGenPage extends Component {
|
||||
aria-describedby="info-dialog-description"
|
||||
scroll="paper"
|
||||
>
|
||||
<InfoDialog/>
|
||||
<InfoDialog handleCloseInfo = {this.handleCloseInfo}/>
|
||||
</Dialog>
|
||||
)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user