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

Commit 00ad13d

Browse files
committed
Remove unnecessary imports of React
In React 17 this is no longer necessary just to use JSX (see microsoft/TypeScript#41882 (comment)).
1 parent c480d2c commit 00ad13d

File tree

6 files changed

+2
-7
lines changed

6 files changed

+2
-7
lines changed

client/src/components/App.test.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from "react";
21
import { render, screen } from "@testing-library/react";
32
import App from "components/App";
43

client/src/components/App.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from "react";
21
import { BrowserRouter as Router, Switch, Route } from "react-router-dom";
32
import { QueryClient, QueryClientProvider } from "react-query";
43

client/src/components/Icon.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import React from "react";
2-
31
// All icons in this file come from Refactoring UI v1.0.2
42
// (https://refactoringui.com).
53

client/src/components/TaskCard.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from "react";
21
import cn from "classnames";
32
import { Link } from "react-router-dom";
43

client/src/components/pages/Add.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useState } from "react";
1+
import { useState } from "react";
22
import cn from "classnames";
33
import { Redirect } from "react-router-dom";
44

client/src/components/pages/Edit.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useState } from "react";
1+
import { useState } from "react";
22
import cn from "classnames";
33
import { useParams, Redirect } from "react-router-dom";
44

0 commit comments

Comments
 (0)