Skip to content

Commit

Permalink
docs(auth): Adds missing tag Notification on MyLoginPage example
Browse files Browse the repository at this point in the history
  • Loading branch information
gvillo committed Mar 8, 2020
1 parent 5ca60e0 commit cbce569
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/Authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ Use the `useLogin` and `useLogout` hooks in your custom `LoginPage` and `LogoutB
```jsx
// in src/MyLoginPage.js
import React, { useState } from 'react';
import { useLogin, useNotify } from 'react-admin';
import { useLogin, useNotify, Notification } from 'react-admin';
import { ThemeProvider } from '@material-ui/styles';

const MyLoginPage = ({ theme }) => {
Expand All @@ -249,6 +249,7 @@ const MyLoginPage = ({ theme }) => {
<form onSubmit={submit}>
<input name="email" type="email" value={email} onChange={e => setEmail(e.target.value)} />
<input name="password" type="password" value={password} onChange={e => setPassword(e.target.value)} />
<Notification />
</form>
</ThemeProvider>
);
Expand Down

0 comments on commit cbce569

Please sign in to comment.