Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Remove some redundant imports #13066

Merged
merged 4 commits into from
May 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion examples/with-three-js/pages/_app.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react'
import './index.css'

function MyApp({ Component, pageProps }) {
Expand Down
2 changes: 1 addition & 1 deletion examples/with-three-js/pages/birds.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useRef, useState, useEffect, Suspense } from 'react'
import { useRef, useState, useEffect, Suspense } from 'react'
import * as THREE from 'three'
import { Canvas, useFrame, useLoader } from 'react-three-fiber'

Expand Down
2 changes: 1 addition & 1 deletion examples/with-three-js/pages/boxes.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useRef, useState, Suspense } from 'react'
import { useRef, useState, Suspense } from 'react'
import { Canvas, useFrame } from 'react-three-fiber'

const Box = (props) => {
Expand Down
1 change: 0 additions & 1 deletion examples/with-three-js/pages/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react'
import Link from 'next/link'

const Index = () => {
Expand Down
1 change: 0 additions & 1 deletion examples/with-typestyle/pages/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react'
import { style } from 'typestyle'

const className = style({ color: 'red' })
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react'
import getConfig from 'next/config'

const { publicRuntimeConfig } = getConfig()
Expand Down
2 changes: 1 addition & 1 deletion examples/with-videojs/components/Player.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { Component } from 'react'
import { Component } from 'react'
import videojs from 'video.js'
import 'videojs-youtube'

Expand Down
4 changes: 2 additions & 2 deletions examples/with-videojs/pages/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { Component } from 'react'
import Player from '../components/Player'

export default class Index extends React.Component {
export default class Index extends Component {
render() {
const videoJsOptions = {
techOrder: ['youtube'],
Expand Down
2 changes: 1 addition & 1 deletion examples/with-why-did-you-render/components/header.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState, useEffect } from 'react'
import { useState, useEffect } from 'react'

const Header = () => {
const [objState, setObjState] = useState({ name: 'World' })
Expand Down
2 changes: 0 additions & 2 deletions examples/with-yarn-workspaces/packages/bar/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react'

const Bar = () => <strong>bar</strong>

export default Bar
1 change: 0 additions & 1 deletion examples/with-zeit-fetch/pages/preact.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react'
import Link from 'next/link'
import fetch from '../fetch'

Expand Down