From fac5b40c044b91576cc8a39f454aa20051b4888a Mon Sep 17 00:00:00 2001 From: dinu Date: Tue, 14 Feb 2023 20:52:50 -0500 Subject: [PATCH] recover some changes --- frontend/package.json | 1 + frontend/src/components/auth/Login.tsx | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/frontend/package.json b/frontend/package.json index f35f3e88..9a1b9717 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -16,6 +16,7 @@ "@types/react": "^17.0.0", "@types/react-dom": "^17.0.0", "@types/react-jsonschema-form": "^1.7.4", + "react-microsoft-login": "^1.15.0", "@types/react-table": "^7.0.29", "apollo-upload-client": "^16.0.0", "axios": "^0.21.1", diff --git a/frontend/src/components/auth/Login.tsx b/frontend/src/components/auth/Login.tsx index 295aeda3..8e3e9ea1 100644 --- a/frontend/src/components/auth/Login.tsx +++ b/frontend/src/components/auth/Login.tsx @@ -1,5 +1,6 @@ import React, { useContext, useState } from "react"; import { Redirect, useHistory } from "react-router-dom"; +import MicrosoftLogin from "react-microsoft-login"; import { GoogleLogin, GoogleLoginResponse, @@ -89,6 +90,13 @@ const Login = (): React.ReactElement => { window.alert(JSON.stringify(error)) } /> + { + // eslint-disable-next-line no-alert + window.alert(JSON.stringify(error)); + }} + />