From cbce569365992f1d88b8321fb528de930c4c1ad5 Mon Sep 17 00:00:00 2001 From: villo Date: Sun, 8 Mar 2020 18:44:09 -0300 Subject: [PATCH 1/2] docs(auth): Adds missing tag Notification on MyLoginPage example #4491 --- docs/Authentication.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/Authentication.md b/docs/Authentication.md index a3f993c3344..daba5712264 100644 --- a/docs/Authentication.md +++ b/docs/Authentication.md @@ -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 }) => { @@ -249,6 +249,7 @@ const MyLoginPage = ({ theme }) => {
setEmail(e.target.value)} /> setPassword(e.target.value)} /> + ); From 41d33b4624e7b493071477aa0dcfb20c8f0b6655 Mon Sep 17 00:00:00 2001 From: Francois Zaninotto Date: Mon, 9 Mar 2020 11:28:12 +0100 Subject: [PATCH 2/2] Move Notification outside of form --- docs/Authentication.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Authentication.md b/docs/Authentication.md index daba5712264..5e3c0438974 100644 --- a/docs/Authentication.md +++ b/docs/Authentication.md @@ -249,8 +249,8 @@ const MyLoginPage = ({ theme }) => {
setEmail(e.target.value)} /> setPassword(e.target.value)} /> - + ); };