All files / src/version2/alertIcons ErrorAlertIcon.js

100% Statements 4/4
50% Branches 1/2
100% Functions 1/1
100% Lines 4/4

Press n or j to go to the next uncovered block, b, p or k for the previous block.

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            1x 1x                                     1x 1x  
import React, { Component } from 'react';
import { ErrorAlertIcon_defaultProps } from './props/defaultProps';
import { ErrorAlertIcon_propTypes } from './props/propTypes';
import style from './AlertIcons.module.css';
export default class ErrorAlertIcon extends Component {
    render() {
        let { variant, type } = this.props;
        return (
            <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' className={type ? `${style[type]}` : ''}>
                <path className={`${style[`error_${variant}`]}`} d='M34.89,23.86s27.19-17.79,41-12.44S99,61.81,60.74,82,5.16,58.27,5,50.48C4.87,42.94,5,25,34.89,23.86Z' />
                <polygon className={style.outer_cls2} points='95 49.42 94.18 48.61 92.98 49.79 91.79 48.61 90.97 49.42 92.16 50.6 90.97 51.78 91.79 52.59 92.98 51.41 94.18 52.59 95 51.78 93.81 50.6 95 49.42' />
                <rect className={style.outer_cls2} x='10' y='21.46' width='1.16' height='2.18' />
                <rect className={style.outer_cls2} x='11.8' y='24.27' width='2.21' height='1.15' />
                <rect className={style.outer_cls2} x='10' y='26.05' width='1.16' height='2.18' />
                <rect className={style.outer_cls2} x='7.15' y='24.27' width='2.21' height='1.15' />
                <path className={style.outer_cls3} d='M11.8,82.6a2.76,2.76,0,1,1,2.8-2.76A2.78,2.78,0,0,1,11.8,82.6Zm0-4.37a1.61,1.61,0,1,0,1.63,1.61A1.62,1.62,0,0,0,11.8,78.23Z' />
                <ellipse className={style.outer_cls4} cx='50.21' cy='11.21' rx='1.22' ry='1.21' />
                <polygon className={style.outer_cls4} points='59.77 90 61.8 87.28 63.69 90 59.77 90' />
                <path className={style.outer_cls5} d='M53.32,46.17s-13.79-9-20.78-6.31S20.79,65.43,40.21,75.68s28.2-12.05,28.27-16S68.48,46.73,53.32,46.17Z' />
                <path className={style.outer_cls6} d='M61,70.94a.94.94,0,1,0-1-1.59,22.58,22.58,0,1,1,6.81-6.57L54.24,50.16l4-4a4.35,4.35,0,0,0-6.14-6.15l-4,4-4-4A4.34,4.34,0,0,0,38,46.18l4,4-4,4a4.35,4.35,0,0,0,6.14,6.15l4-4,7.32,7.22a.92.92,0,0,0,1.32,0h0a.94.94,0,0,0,0-1.32l-8-7.88a.94.94,0,0,0-1.32,0l-4.62,4.63a2.48,2.48,0,0,1-3.5-3.5l4.62-4.63h0a.92.92,0,0,0,0-1.32l-4.62-4.62a2.48,2.48,0,0,1,3.5-3.5L47.43,46a1,1,0,0,0,.66.29.94.94,0,0,0,.66-.28l4.62-4.62a2.47,2.47,0,0,1,3.5,3.49L52.25,49.5h0a.94.94,0,0,0,0,1.32L66.33,64.89l.09.08a.93.93,0,0,0,1.31-.19,24.47,24.47,0,1,0-44.1-14.62l0,0A24.47,24.47,0,0,0,61,70.94Z' />
                <circle className={style.outer_cls6} cx='58.4' cy='65.25' r='0.93' />
            </svg>
 
        );
    }
}
ErrorAlertIcon.propTypes = ErrorAlertIcon_propTypes;
ErrorAlertIcon.defaultProps = ErrorAlertIcon_defaultProps;