Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
Remove unnecessary imports of React
Browse files Browse the repository at this point in the history
In React 17 this is no longer necessary just to use JSX (see
microsoft/TypeScript#41882 (comment)).
  • Loading branch information
bobwhitelock committed Jun 10, 2021
1 parent cd7297a commit 877a127
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 7 deletions.
1 change: 0 additions & 1 deletion client/src/components/App.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { render, screen } from "@testing-library/react";
import App from "components/App";

Expand Down
1 change: 0 additions & 1 deletion client/src/components/App.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import { BrowserRouter as Router, Switch, Route } from "react-router-dom";
import { QueryClient, QueryClientProvider } from "react-query";

Expand Down
2 changes: 0 additions & 2 deletions client/src/components/Icon.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from "react";

// All icons in this file come from Refactoring UI v1.0.2
// (https://refactoringui.com).

Expand Down
1 change: 0 additions & 1 deletion client/src/components/TaskCard.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";
import cn from "classnames";
import { Link } from "react-router-dom";

Expand Down
2 changes: 1 addition & 1 deletion client/src/components/pages/Add.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState } from "react";
import { useState } from "react";
import cn from "classnames";
import { Redirect } from "react-router-dom";

Expand Down
2 changes: 1 addition & 1 deletion client/src/components/pages/Edit.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState } from "react";
import { useState } from "react";
import cn from "classnames";
import { useParams, Redirect } from "react-router-dom";

Expand Down

0 comments on commit 877a127

Please sign in to comment.