Skip to content

Commit

Permalink
chore: Remove some redundant imports (vercel#13066)
Browse files Browse the repository at this point in the history
This issue is related to [12694](vercel#12964). I covered the following examples


- with-zeit-fetch
- with-yarn-workspaces
- with-why-did-your-render
- with-video-js
- with-universal-configuration-runtime
- with-typestyle
- with-three-js

If you have a suggestion or change I'd appreciate it
  • Loading branch information
teo-garcia authored and chibicode committed May 21, 2020
1 parent da54029 commit 3056ab7
Show file tree
Hide file tree
Showing 11 changed files with 6 additions and 13 deletions.
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

0 comments on commit 3056ab7

Please sign in to comment.