All files / src/components npm-logo.js

0% Statements 0/3
0% Branches 0/4
0% Functions 0/1
0% Lines 0/3

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                               
import React from 'react';
 
export default class NpmLogo extends React.Component {
  render() {
    const bgcolor = this.props.bg || "#cb0000";
    const fgcolor = this.props.fg || "#ffffff";
 
    return (
      <svg height={this.props.size} width={this.props.size} viewBox="0 0 700 700" fill="currentColor">
        <polygon fill={bgcolor} points="0,700 700,700 700,0 0,0" />
        <polygon fill={fgcolor} points="150,550 350,550 350,250 450,250 450,550 550,550 550,150 150,150 "/>
      </svg>
    );
  }
}