import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import { Paper, Grid, Avatar, Typography } from '@material-ui/core'; const styles = theme => ({ root: { overflow: 'hidden', padding: `0 ${theme.spacing(3)}px`, }, wrapper: { maxWidth: 400, }, paper: { margin: theme.spacing(1), padding: theme.spacing(2), backgroundColor: theme.palette.secondary.light, }, }); function AutoGridNoWrap(props) { const { classes } = props; const message = `Truncation should be conditionally applicable on this long line of text as this is a much longer line than what the container can support. `; return (
W {message} W {message} W {message}
); } AutoGridNoWrap.propTypes = { classes: PropTypes.object.isRequired, }; export default withStyles(styles)(AutoGridNoWrap);