Skip to content
This repository was archived by the owner on Apr 14, 2023. It is now read-only.

Commit a597cf5

Browse files
author
Stephen Barlow
authored
Merge pull request #1084 from morinokami/fix-indentation
Indent Login function's body
2 parents 4d54f5e + 70ecc3c commit a597cf5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/source/tutorial/mutations.mdx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,15 @@ Add the following to the bottom of `login.tsx`:
7272

7373
```tsx:title=src/pages/login.tsx
7474
export default function Login() {
75-
const [login, { loading, error }] = useMutation<
76-
LoginTypes.Login,
77-
LoginTypes.LoginVariables
78-
>(LOGIN_USER);
75+
const [login, { loading, error }] = useMutation<
76+
LoginTypes.Login,
77+
LoginTypes.LoginVariables
78+
>(LOGIN_USER);
7979

80-
if (loading) return <Loading />;
81-
if (error) return <p>An error occurred</p>;
80+
if (loading) return <Loading />;
81+
if (error) return <p>An error occurred</p>;
8282

83-
return <LoginForm login={login} />;
83+
return <LoginForm login={login} />;
8484
}
8585
```
8686

0 commit comments

Comments
 (0)