Skip to content

Commit

Permalink
refactor: remove unnecessary React imports
Browse files Browse the repository at this point in the history
  • Loading branch information
tednaaa committed Jul 5, 2023
1 parent 06e7a14 commit 3d2e1b0
Show file tree
Hide file tree
Showing 17 changed files with 7 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/app/app.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { FC } from 'react';
import { FC } from 'react';
import { RouterProvider } from 'react-router-dom';

import { router } from '@/pages/router';
Expand Down
1 change: 0 additions & 1 deletion src/app/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { createRoot } from 'react-dom/client';

import { App } from './app';
Expand Down
1 change: 0 additions & 1 deletion src/pages/root/ui/counter-two/counter-two.spec.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 { CounterTwo } from './counter-two';
import userEvent from '@testing-library/user-event';
Expand Down
2 changes: 1 addition & 1 deletion src/pages/root/ui/counter-two/counter-two.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { FC } from 'react';
import { FC } from 'react';

interface Props {
count: number;
Expand Down
1 change: 0 additions & 1 deletion src/pages/root/ui/counter/counter.spec.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 userEvent from '@testing-library/user-event';
import { Counter } from './counter';
Expand Down
1 change: 0 additions & 1 deletion src/pages/root/ui/counter/counter.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { useState } from 'react';

export const Counter = () => {
Expand Down
1 change: 0 additions & 1 deletion src/pages/root/ui/main/main.spec.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 { Main } from './main';

Expand Down
2 changes: 0 additions & 2 deletions src/pages/root/ui/main/main.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react';

export const Main = () => {
return (
<>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/root/ui/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { FC } from 'react';
import { FC } from 'react';

import { Counter } from './counter/counter';

Expand Down
1 change: 0 additions & 1 deletion src/pages/root/ui/skills/skills.spec.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 { Skills } from './skills';

Expand Down
2 changes: 1 addition & 1 deletion src/pages/root/ui/skills/skills.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { FC, useEffect, useState } from 'react';
import { FC, useEffect, useState } from 'react';

interface Props {
skills: string[];
Expand Down
1 change: 0 additions & 1 deletion src/pages/root/ui/users/users.spec.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 { Users } from './users';
import { server } from '@/shared/api/mocks';
Expand Down
2 changes: 1 addition & 1 deletion src/pages/root/ui/users/users.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import axios from 'axios';
import React, { useEffect, useState } from 'react';
import { useEffect, useState } from 'react';

export const Users = () => {
const [users, setUsers] = useState<string[]>([]);
Expand Down
1 change: 0 additions & 1 deletion src/pages/router.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { createBrowserRouter } from 'react-router-dom';

import { routes } from '@/shared/routes';
Expand Down
2 changes: 1 addition & 1 deletion src/shared/lib/testing/render.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { FC, ReactElement, ReactNode } from 'react';
import { FC, ReactElement, ReactNode } from 'react';
import { render, RenderOptions } from '@testing-library/react';

import { MemoryRouter } from 'react-router-dom';
Expand Down
1 change: 0 additions & 1 deletion src/shared/ui/container/container.spec.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 { Container } from './container';
Expand Down
2 changes: 1 addition & 1 deletion src/shared/ui/container/container.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { FC, ReactNode } from 'react';
import { FC, ReactNode } from 'react';
import styles from './container.module.scss';

interface Props {
Expand Down

0 comments on commit 3d2e1b0

Please sign in to comment.