Skip to content

Commit 3303caf

Browse files
authored
Merge pull request #173 from maxfarseer/master
hooks/13_login_form/fix function parameters
2 parents 0f334b9 + 974b507 commit 3303caf

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

hooks/13_LoginForm/Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ _./src/pages/loginPage.tsx_
424424
```diff
425425
interface PropsForm {
426426
onLogin: () => void;
427-
+ onUpdateField: (string, any) => void;
427+
+ onUpdateField: (name: string, value: any) => void;
428428
+ loginInfo : LoginEntity;
429429
}
430430

hooks/13_LoginForm/src/pages/loginPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export const LoginPage = withStyles(styles)(withRouter<Props>(LoginPageInner));
7070

7171
interface PropsForm {
7272
onLogin: () => void;
73-
onUpdateField: (string, any) => void;
73+
onUpdateField: (name: string, value: any) => void;
7474
loginInfo: LoginEntity;
7575
}
7676

0 commit comments

Comments
 (0)