mirror of
https://github.com/status-im/ens-usernames.git
synced 2025-02-24 08:08:06 +00:00
* Fix redux store configuration * Setup i18n * Add welcome page french and english translation * Rename languages files * Add optimized translation * Add Ethereum network error message translation * Add top navbar translation * Add constants translation * Add move domain translation * Add translation to add domain * Add name lookup translation * Add display box translation * Add edit options translation * Add register sub domain translation * Add release domain translation * Add setup ens translation * Add update controller translation * Add test token translation * Add erc20 token translation * Add ens sub management translation * Add admin mode translation * Add terms translation
70 lines
2.1 KiB
JavaScript
70 lines
2.1 KiB
JavaScript
import lang from 'i18n-js';
|
|
import React from 'react';
|
|
import { withStyles } from '@material-ui/core/styles';
|
|
import Button from '@material-ui/core/Button';
|
|
import Dialog from '@material-ui/core/Dialog';
|
|
import DialogActions from '@material-ui/core/DialogActions';
|
|
import DialogContent from '@material-ui/core/DialogContent';
|
|
import DialogContentText from '@material-ui/core/DialogContentText';
|
|
import DialogTitle from '@material-ui/core/DialogTitle';
|
|
import Slide from '@material-ui/core/Slide';
|
|
import classNames from 'classnames';
|
|
|
|
function Transition(props) {
|
|
return <Slide direction="up" {...props} />;
|
|
}
|
|
|
|
const styles = () => ({
|
|
dialog: {
|
|
textAlign: 'center',
|
|
},
|
|
actions: {
|
|
background: 'rgba(255, 255, 255, 0.8)',
|
|
margin: 0,
|
|
borderTop: 'solid 1px #ccc',
|
|
},
|
|
button: {
|
|
margin: '0',
|
|
fontSize: '17px',
|
|
color: '#007AFF',
|
|
width: '50%',
|
|
borderRight: 'solid 1px #ccc',
|
|
borderRadius: 0,
|
|
padding: '15px',
|
|
},
|
|
});
|
|
|
|
const ReleaseDomainAlert = ({ classes, open, handleClose }) => (
|
|
<div>
|
|
<Dialog
|
|
className={classNames(classes.dialog)}
|
|
open={open}
|
|
TransitionComponent={Transition}
|
|
keepMounted
|
|
onClose={handleClose}
|
|
aria-labelledby="alert-dialog-slide-title"
|
|
aria-describedby="alert-dialog-slide-description"
|
|
>
|
|
<DialogTitle id="alert-dialog-slide-title">
|
|
{lang.t('domain.release.alert.title')}
|
|
</DialogTitle>
|
|
<DialogContent>
|
|
<DialogContentText id="alert-dialog-slide-description">
|
|
{lang.t('domain.release.alert.text')}
|
|
</DialogContentText>
|
|
</DialogContent>
|
|
<DialogActions className={classNames(classes.actions)}>
|
|
<Button onClick={() => handleClose(null)} className={classNames(classes.button)} color="primary">
|
|
<strong>{lang.t('action.cancel')}</strong>
|
|
</Button>
|
|
<Button onClick={() => handleClose(true)} className={classNames(classes.button)} color="primary">
|
|
{lang.t('action.yes')}
|
|
</Button>
|
|
</DialogActions>
|
|
</Dialog>
|
|
</div>
|
|
);
|
|
|
|
|
|
export default withStyles(styles)(ReleaseDomainAlert);
|