All files / components/styled MainButton.tsx

100% Statements 7/7
100% Branches 0/0
100% Functions 1/1
100% Lines 7/7

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 211x 1x 1x 1x       1x 14x                     1x  
import React from "react";
import styled from "styled-components";
import Button from "@material-ui/core/Button";
const OurButton = styled(Button)`
  margin: 20px 0px;
`;
 
const MainButton = (props: any) => (
  <OurButton
    style={props.buttonStyle}
    type="submit"
    variant="outlined"
    color="primary"
    data-testid="comment-button"
    {...props}
  >
    {props.children}
  </OurButton>
);
export default MainButton;