Skip to content

Commit b23ef61

Browse files
author
Víctor Borrego Pérez
committed
2 parents 1fe8098 + e6c0fb9 commit b23ef61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)