Skip to content

Commit

Permalink
chore(rematch-tsx): fix example type error.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Sep 20, 2022
1 parent 31393aa commit 1dadbdd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion example/rematch-tsx/package.json
Expand Up @@ -22,7 +22,7 @@
"react-dynamic-loadable": "~3.0.0",
"react-redux": "~7.2.8",
"react-router-dom": "~6.3.0",
"uiw": "~4.21.0"
"uiw": "^4.21.17"
},
"devDependencies": {
"@kkt/less-modules": "^7.2.0",
Expand Down
4 changes: 2 additions & 2 deletions example/rematch-tsx/src/pages/login/index.tsx
Expand Up @@ -85,7 +85,7 @@ export default function Login() {
},
}}
>
{({ fields, canSubmit }) => {
{({ fields = {}, canSubmit }) => {
return (
<>
<Row>
Expand All @@ -102,7 +102,7 @@ export default function Login() {
</Row>
<Row>
<Col>
<Button loading={!!loading} disabled={!canSubmit()} block type="dark" htmlType="submit">
<Button loading={!!loading} disabled={!canSubmit!()} block type="dark" htmlType="submit">
登录
</Button>
</Col>
Expand Down

0 comments on commit 1dadbdd

Please sign in to comment.