54 lines
1.5 KiB
JavaScript
54 lines
1.5 KiB
JavaScript
|
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}>
|
||
|
This site is optimized for Status. Get the App to enable all features and get the best experience.
|
||
|
</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);
|