Add component IconText

This commit is contained in:
Sébastien GLATZ
2019-06-27 11:12:38 +02:00
parent 1e83e98042
commit e27d66dc3d
+36
View File
@@ -0,0 +1,36 @@
import React, { Fragment } from 'react';
import PropTypes from "prop-types";
import { withStyles } from '@material-ui/core/styles';
import SvgIcon from '@material-ui/core/SvgIcon';
const styles = theme => ({
card: {
display: 'flex',
position: 'relative',
height: '60vh',
width: '100%',
},
});
class IconText extends React.Component {
render() {
return (
<Fragment>
<SvgIcon>
<path d="M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z" />
</SvgIcon>
</Fragment>
);
}
}
IconText.propTypes = {
classes: PropTypes.object.isRequired,
theme: PropTypes.object.isRequired,
};
export default withStyles(styles, { withTheme: true })(IconText);