Skip to content

Commit

Permalink
Fix eslint prop-types warning for auth components
Browse files Browse the repository at this point in the history
  • Loading branch information
amalv committed Feb 11, 2019
1 parent b000210 commit bdad8e9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/components/SignIn.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ import Paper from "@material-ui/core/Paper";
import Typography from "@material-ui/core/Typography";
import { withTheme } from "@material-ui/core/styles";
import styled from "styled-components";
import type { Theme } from "@material-ui/core/styles/createMuiTheme";

type Props = { theme: Theme };

const Base = styled.main`
width: auto;
Expand Down Expand Up @@ -48,7 +51,7 @@ const SubmitButtonStyled = styled(Button)`
margin-top: ${theme => theme.spacing.unit * 3}px;
`;

const SignIn = props => {
const SignIn = (props: Props) => {
// eslint-disable-next-line react/prop-types
const { theme } = props;
const { zIndex, ...rest } = theme;
Expand Down
6 changes: 4 additions & 2 deletions src/components/SignUp.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ import Paper from "@material-ui/core/Paper";
import Typography from "@material-ui/core/Typography";
import { withTheme } from "@material-ui/core/styles";
import styled from "styled-components";
import type { Theme } from "@material-ui/core/styles/createMuiTheme";

type Props = { theme: Theme };

const Base = styled.main`
width: auto;
Expand Down Expand Up @@ -48,8 +51,7 @@ const SubmitButtonStyled = styled(Button)`
margin-top: ${theme => theme.spacing.unit * 3}px;
`;

const SignUp = props => {
// eslint-disable-next-line react/prop-types
const SignUp = (props: Props) => {
const { theme } = props;
const { zIndex, ...rest } = theme;
return (
Expand Down

0 comments on commit bdad8e9

Please sign in to comment.