diff --git a/app/src/components/ConfigDocumentation.tsx b/app/src/components/ConfigDocumentation.tsx new file mode 100644 index 00000000..251d8b45 --- /dev/null +++ b/app/src/components/ConfigDocumentation.tsx @@ -0,0 +1,102 @@ +import React from 'react'; +import { withStyles } from '@material-ui/core/styles'; +import PropTypes from 'prop-types'; +import { FormattedMessage } from 'react-intl'; + +import Dialog from '@material-ui/core/Dialog'; +import DialogTitle from '@material-ui/core/DialogTitle'; +import DialogContent from '@material-ui/core/DialogContent'; +import Grid from '@material-ui/core/Grid'; +import List from '@material-ui/core/List'; +import ListItem from '@material-ui/core/ListItem'; +import ListItemText from '@material-ui/core/ListItemText'; +import ListItemAvatar from '@material-ui/core/ListItemAvatar'; +import Avatar from '@material-ui/core/Avatar'; +import WebAssetIcon from '@material-ui/icons/WebAsset'; +import ErrorIcon from '@material-ui/icons/Error'; +import Hidden from '@material-ui/core/Hidden'; + +const styles = (theme: any) => + ({ + dialogPaper : + { + width : '40vw', + [theme.breakpoints.down('lg')] : + { + width : '40vw' + }, + [theme.breakpoints.down('md')] : + { + width : '50vw' + }, + [theme.breakpoints.down('sm')] : + { + width : '70vw' + }, + [theme.breakpoints.down('xs')] : + { + width : '90vw' + } + // display : 'flex', + // flexDirection : 'column' + }, + list : { + backgroundColor : theme.palette.background.paper + }, + errorAvatar : { + width : theme.spacing(20), + height : theme.spacing(20) + } + }); + +let dense = false; + +const ConfigDocumentation = ({ + platform, + classes +}) => +{ + if (platform !== 'desktop') + dense = true; + + return ( + + + + + + + + + +
+ + + +
+
+
+
+
+ ); +}; + +ConfigDocumentation.propTypes = +{ + platform : PropTypes.string.isRequired, + classes : PropTypes.object.isRequired +}; + +export default withStyles(styles)(ConfigDocumentation); diff --git a/app/src/components/Controls/TopBar.js b/app/src/components/Controls/TopBar.js index c0b5ce7f..8a289933 100644 --- a/app/src/components/Controls/TopBar.js +++ b/app/src/components/Controls/TopBar.js @@ -944,9 +944,9 @@ TopBar.propTypes = canPromote : PropTypes.bool.isRequired, classes : PropTypes.object.isRequired, theme : PropTypes.object.isRequired, - intl : PropTypes.object.isRequired, - locale : PropTypes.object.isRequired, - localesList : PropTypes.object.isRequired + intl : PropTypes.object, + locale : PropTypes.string.isRequired, + localesList : PropTypes.array.isRequired }; const makeMapStateToProps = () =>