All files / src/containers/PatientDetails/components/PatientVisit/Baseline PatientVisitAction.js

0% Statements 0/9
100% Branches 0/0
0% Functions 0/2
0% Lines 0/8
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39                                                                             
import React from 'react';
import Button from '@material-ui/core/Button';
import { withStyles } from '@material-ui/core/styles';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faPen, faTrashAlt } from '@fortawesome/pro-light-svg-icons';
 
const styles = theme => ({
    button: {
        margin: theme.spacing.unit
    },
    leftIcon: {
        marginRight: theme.spacing.unit
    },
    DeleteBtnWrapper: {
        padding: '10px 0',
        fontSize: '1rem',
        borderRadius: '50%',
        minWidth: '40px',
        border: '1px sold #666',
        backgroundColor: 'transparent'
    }
});
 
function PatientVisitAction(props) {
    const { classes } = props;
    return (
        <div>
            <Button variant='contained' className={classes.DeleteBtnWrapper}>
                <FontAwesomeIcon icon={faPen} />
            </Button>
            <Button variant='contained' size='small' className={classes.DeleteBtnWrapper}>
                <FontAwesomeIcon icon={faTrashAlt} />
            </Button>
        </div>
    );
}
 
export default withStyles(styles)(PatientVisitAction);