Skip to content

Commit

Permalink
Merge pull request #4492 from gvillo/docs-authentication-nofitication…
Browse files Browse the repository at this point in the history
…-issue-4491

[docs] authentication nofitication issue 4491
  • Loading branch information
fzaninotto authored Mar 9, 2020
2 parents 3d16941 + 41d33b4 commit 697e037
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 @@ -250,6 +250,7 @@ const MyLoginPage = ({ theme }) => {
<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)} />
</form>
<Notification />
</ThemeProvider>
);
};
Expand Down

0 comments on commit 697e037

Please sign in to comment.