All files / app/components PageTitle.tsx

100% Statements 8/8
100% Branches 0/0
100% Functions 2/2
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 21 22 2316x 16x 16x   58x             16x 365x   365x                
import { Typography, TypographyProps } from "@material-ui/core";
import classNames from "classnames";
import makeStyles from "utils/makeStyles";
 
const useStyles = makeStyles((theme) => ({
  root: {
    paddingBottom: theme.spacing(2),
    paddingTop: theme.spacing(2),
  },
}));
 
export default function PageTitle(props: TypographyProps) {
  const classes = useStyles();
 
  return (
    <Typography
      {...props}
      className={classNames(props.className, classes.root)}
      variant="h1"
    />
  );
}