Skip to content

Commit

Permalink
Remove imports of React that are no longer needed (#1531)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnthagen authored Jan 14, 2022
1 parent a857709 commit f609261
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import ReactDOM from "react-dom";
import renderer, {
ReactTestInstance,
Expand Down
4 changes: 2 additions & 2 deletions src/components/Toast/UpperRightToastContainer.tsx
Original file line number Diff line number Diff line change
@@ -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 (
<ToastContainer
position="top-right"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Chip, IconButton } from "@material-ui/core";
import { Add, Delete, RestoreFromTrash } from "@material-ui/icons";
import React, { ReactElement } from "react";
import { ReactElement } from "react";

import AlignedList from "goals/ReviewEntries/ReviewEntriesComponent/CellComponents/AlignedList";
import { FieldParameterStandard } from "goals/ReviewEntries/ReviewEntriesComponent/CellComponents/CellColumns";
Expand Down

0 comments on commit f609261

Please sign in to comment.