Skip to content

Commit

Permalink
chore: refactor react import
Browse files Browse the repository at this point in the history
  • Loading branch information
transitive-bullshit committed Apr 10, 2022
1 parent 1890ff7 commit e75dbcf
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion components/ErrorPage.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 { PageHead } from './PageHead'

import styles from './styles.module.css'
Expand Down
2 changes: 1 addition & 1 deletion components/Footer.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 useDarkMode from '@fisch0920/use-dark-mode'
import { FaTwitter } from '@react-icons/all-files/fa/FaTwitter'
import { FaZhihu } from '@react-icons/all-files/fa/FaZhihu'
Expand Down
2 changes: 1 addition & 1 deletion components/GitHubShareButton.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 styles from './styles.module.css'

Expand Down
2 changes: 1 addition & 1 deletion components/Loading.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 { LoadingIcon } from './LoadingIcon'

import styles from './styles.module.css'
Expand Down
2 changes: 1 addition & 1 deletion components/LoadingIcon.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 cs from 'classnames'
import styles from './styles.module.css'

Expand Down
2 changes: 1 addition & 1 deletion components/NotionPage.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 Link from 'next/link'
import Image from 'next/image'
import dynamic from 'next/dynamic'
Expand Down
2 changes: 1 addition & 1 deletion components/NotionPageHeader.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 cs from 'classnames'
import useDarkMode from '@fisch0920/use-dark-mode'
import { IoSunnyOutline } from '@react-icons/all-files/io5/IoSunnyOutline'
Expand Down
2 changes: 1 addition & 1 deletion components/Page404.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 * as types from 'lib/types'
import { PageHead } from './PageHead'

Expand Down
2 changes: 1 addition & 1 deletion components/PageActions.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 { IoHeartOutline } from '@react-icons/all-files/io5/IoHeartOutline'
import { AiOutlineRetweet } from '@react-icons/all-files/ai/AiOutlineRetweet'

Expand Down
2 changes: 1 addition & 1 deletion components/PageHead.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Head from 'next/head'
import React from 'react'
import * as React from 'react'

import * as types from 'lib/types'
import * as config from 'lib/config'
Expand Down
2 changes: 1 addition & 1 deletion components/PageSocial.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 cs from 'classnames'

import * as config from 'lib/config'
Expand Down
2 changes: 1 addition & 1 deletion pages/[pageId].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 { isDev, domain } from 'lib/config'
import { getSiteMaps } from 'lib/get-site-maps'
import { resolveNotionPage } from 'lib/resolve-notion-page'
Expand Down
2 changes: 1 addition & 1 deletion pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import 'styles/notion.css'
// global style overrides for prism theme (optional)
import 'styles/prism-theme.css'

import React from 'react'
import * as React from 'react'
import { useRouter } from 'next/router'
import * as Fathom from 'fathom-client'
import posthog from 'posthog-js'
Expand Down
2 changes: 1 addition & 1 deletion pages/_document.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 Document, { Html, Head, Main, NextScript } from 'next/document'
import { IconContext } from '@react-icons/all-files'

Expand Down
2 changes: 1 addition & 1 deletion pages/api/social-image.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 { withOGImage } from 'next-api-og-image'

import {
Expand Down
2 changes: 1 addition & 1 deletion pages/index.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 { domain } from 'lib/config'
import { resolveNotionPage } from 'lib/resolve-notion-page'
import { NotionPage } from 'components'
Expand Down

0 comments on commit e75dbcf

Please sign in to comment.