Skip to content

Commit

Permalink
refactor(src): remove unnecessary React import
Browse files Browse the repository at this point in the history
  • Loading branch information
kubosho committed Jan 3, 2023
1 parent eff0e2e commit 11c63f5
Show file tree
Hide file tree
Showing 20 changed files with 9 additions and 26 deletions.
1 change: 0 additions & 1 deletion src/components/EntryList/EntryList.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import Link from 'next/link';

import { formatYYMMDDString, formatISOString } from '../../entry/date';
Expand Down
2 changes: 1 addition & 1 deletion src/components/ErrorBoundary.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import * as React from 'react';
import Bugsnag from '@bugsnag/js';
import BugsnagPluginReact, { BugsnagErrorBoundary } from '@bugsnag/plugin-react';

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

import { FACEBOOK_APP_ID } from '../../constants/site_data';
import { SnsShareUrl } from '../../constants/sns_share_url';
import { FacebookIcon } from '../Icon/FacebookIcon';
Expand Down
2 changes: 0 additions & 2 deletions src/components/Icon/FacebookIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react';

import { retrieveTranslation } from '../../locales/i18n';

// https://github.com/FortAwesome/Font-Awesome/blob/master/js-packages/@fortawesome/fontawesome-free/svgs/brands/facebook-f.svg
Expand Down
2 changes: 0 additions & 2 deletions src/components/Icon/ShareIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react';

import { retrieveTranslation } from '../../locales/i18n';

// Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
Expand Down
2 changes: 0 additions & 2 deletions src/components/Icon/TwitterIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react';

import { retrieveTranslation } from '../../locales/i18n';

// https://github.com/FortAwesome/Font-Awesome/blob/master/js-packages/@fortawesome/fontawesome-free/svgs/brands/twitter.svg
Expand Down
2 changes: 1 addition & 1 deletion src/components/PublishedDate/PublishedDate.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { ReactNode, TimeHTMLAttributes } from 'react';
import { ReactNode, TimeHTMLAttributes } from 'react';

import styles from './PublishedDate.module.css';

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

import { retrieveTranslation } from '../../locales/i18n';
import { ShareIcon } from '../Icon/ShareIcon';
Expand Down
2 changes: 1 addition & 1 deletion src/components/SiteContents/SiteContents.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { ReactNode } from 'react';
import { ReactNode } from 'react';

import styles from './SiteContents.module.css';

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

import { FacebookLink } from '../FacebookLink';
import { ShareButton } from '../ShareButton';
import { TwitterLink } from '../TwitterLink';
Expand Down
2 changes: 0 additions & 2 deletions src/components/TwitterLink/TwitterLink.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react';

import { TWITTER_ACCOUNT_ID } from '../../constants/site_data';
import { SnsShareUrl } from '../../constants/sns_share_url';
import { TwitterIcon } from '../Icon/TwitterIcon';
Expand Down
2 changes: 1 addition & 1 deletion src/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useMemo } from 'react';
import { useMemo } from 'react';
import type { AppProps } from 'next/app';
import Head from 'next/head';
import Link from 'next/link';
Expand Down
1 change: 0 additions & 1 deletion src/pages/_document.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import Document, { Html, Main, NextScript, Head, DocumentInitialProps } from 'next/document';

import { BASE_LANGUAGE } from '../constants/site_data';
Expand Down
1 change: 0 additions & 1 deletion src/pages/categories/[category].tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { GetStaticPropsContext } from 'next';
import Head from 'next/head';

Expand Down
2 changes: 1 addition & 1 deletion src/pages/draft/[id].tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ParsedUrlQuery } from 'querystring';

import React, { useEffect } from 'react';
import { useEffect } from 'react';
import { GetStaticProps, PreviewData } from 'next';
import Head from 'next/head';
import Script from 'next/script';
Expand Down
2 changes: 1 addition & 1 deletion src/pages/entries/[id].tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useEffect } from 'react';
import { useEffect } from 'react';
import { GetStaticPropsContext } from 'next';
import Head from 'next/head';
import Script from 'next/script';
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useMemo } from 'react';
import { useMemo } from 'react';
import Head from 'next/head';
import Link from 'next/link';

Expand Down
2 changes: 1 addition & 1 deletion src/pages/policy.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useCallback, useEffect, useState } from 'react';
import { useCallback, useEffect, useState } from 'react';
import Head from 'next/head';

import { OptOutStateSwitch } from '../components/OptOutStateSwitch';
Expand Down
1 change: 0 additions & 1 deletion src/pages/tags/[tag].tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import { GetStaticPropsContext } from 'next';
import Head from 'next/head';

Expand Down
1 change: 0 additions & 1 deletion src/tracking/gtm.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react';
import Script from 'next/script';

import { getBrowsingContextWindowProxy } from '../global_object/window';
Expand Down

0 comments on commit 11c63f5

Please sign in to comment.