Skip to content

Commit e6c0fb9

Browse files
authored
Update Readme.md
1 parent 23350d7 commit e6c0fb9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

hooks/13_LoginForm/Readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ const useStyles = makeStyles(theme =>
139139
})
140140
);
141141

142-
interface Props extends RouteComponentProps, WithStyles<typeof styles> {}
142+
interface Props extends RouteComponentProps {}
143143

144144
const LoginPageInner = (props: Props) => {
145145
const classes = useStyles();
@@ -166,7 +166,7 @@ const LoginPageInner = (props: Props) => {
166166
);
167167
};
168168

169-
export const LoginPage = withRouter < Props > LoginPageInner;
169+
export const LoginPage = withRouter<Props>(LoginPageInner);
170170
```
171171

172172
- This can be ok, but if we take a deeper look to this component, we could break down into two, one is the card itself the other the form dialog, so it should finally look like:

0 commit comments

Comments
 (0)