diff --git a/src/components/Login/RegisterPage/tests/RegisterComponent.test.tsx b/src/components/Login/RegisterPage/tests/RegisterComponent.test.tsx index 3c5f21ecec..78ef168ec4 100644 --- a/src/components/Login/RegisterPage/tests/RegisterComponent.test.tsx +++ b/src/components/Login/RegisterPage/tests/RegisterComponent.test.tsx @@ -1,4 +1,3 @@ -import React from "react"; import ReactDOM from "react-dom"; import renderer, { ReactTestInstance, diff --git a/src/components/Toast/UpperRightToastContainer.tsx b/src/components/Toast/UpperRightToastContainer.tsx index 458543466c..efa698aa8f 100644 --- a/src/components/Toast/UpperRightToastContainer.tsx +++ b/src/components/Toast/UpperRightToastContainer.tsx @@ -1,11 +1,11 @@ -import React from "react"; +import { ReactElement } from "react"; import { ToastContainer } from "react-toastify"; // Styles the ToastContainer so that it appears on the upper right corner with the message. import "react-toastify/dist/ReactToastify.min.css"; /** A pre-configured ToastContainer to consistently display toasts in the * upper right corner of the screen. */ -export function UpperRightToastContainer() { +export function UpperRightToastContainer(): ReactElement { return (