Add component IconText
This commit is contained in:
@@ -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);
|
||||
Reference in New Issue
Block a user