mirror of
https://github.com/status-im/ens-usernames.git
synced 2025-02-23 07:38:21 +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
55 lines
1.4 KiB
JavaScript
55 lines
1.4 KiB
JavaScript
import lang from 'i18n-js';
|
|
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
import { withStyles } from '@material-ui/core/styles';
|
|
import AppBar from '@material-ui/core/AppBar';
|
|
import Toolbar from '@material-ui/core/Toolbar';
|
|
import Typography from '@material-ui/core/Typography';
|
|
import IconButton from '@material-ui/core/IconButton';
|
|
import IPhone from '@material-ui/icons/PhoneIphone';
|
|
import Android from '@material-ui/icons/Android';
|
|
|
|
const styles = {
|
|
root: {
|
|
flexGrow: 1,
|
|
position: 'fixed',
|
|
top: 0,
|
|
width: '100%',
|
|
zIndex: 1,
|
|
},
|
|
flex: {
|
|
flexGrow: 1,
|
|
},
|
|
menuButton: {
|
|
marginLeft: -12,
|
|
marginRight: 20,
|
|
},
|
|
};
|
|
|
|
function ButtonAppBar(props) {
|
|
const { classes } = props;
|
|
return (
|
|
<div className={classes.root}>
|
|
<AppBar position="static">
|
|
<Toolbar>
|
|
<Typography variant="title" color="inherit" className={classes.flex}>
|
|
{lang.t('optimized')}
|
|
</Typography>
|
|
<IconButton color="inherit" aria-label="iPhone" href="https://status.im/success.html" target="_blank">
|
|
<IPhone />
|
|
</IconButton>
|
|
<IconButton color="inherit" aria-label="Android" href="https://test.status.im/" target="_blank">
|
|
<Android />
|
|
</IconButton>
|
|
</Toolbar>
|
|
</AppBar>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
ButtonAppBar.propTypes = {
|
|
classes: PropTypes.object.isRequired,
|
|
};
|
|
|
|
export default withStyles(styles)(ButtonAppBar);
|