From 8efb2c67e382e329ca49d259335be1a7a56d0d8c Mon Sep 17 00:00:00 2001 From: akameco Date: Tue, 18 Jun 2019 23:57:06 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20import=20React=20=E2=86=92=20import=20*?= =?UTF-8?q?=20as=20React?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit resolved #41 --- example/index.tsx | 2 +- src/ChasingDots/index.test.tsx | 2 +- src/ChasingDots/index.tsx | 2 +- src/Circle/index.test.tsx | 2 +- src/Circle/index.tsx | 2 +- src/CubeGrid/index.test.tsx | 2 +- src/CubeGrid/index.tsx | 2 +- src/DoubleBounce/index.test.tsx | 2 +- src/DoubleBounce/index.tsx | 2 +- src/FadingCircle/index.test.tsx | 2 +- src/FadingCircle/index.tsx | 2 +- src/FoldingCube/index.test.tsx | 2 +- src/FoldingCube/index.tsx | 2 +- src/Pulse/index.test.tsx | 2 +- src/Pulse/index.tsx | 2 +- src/RotaingPlane/index.test.tsx | 2 +- src/RotaingPlane/index.tsx | 2 +- src/ThreeBounce/index.test.tsx | 2 +- src/ThreeBounce/index.tsx | 2 +- src/WanderingCubes/index.test.tsx | 2 +- src/WanderingCubes/index.tsx | 2 +- src/WaveLoading/index.test.tsx | 2 +- src/WaveLoading/index.tsx | 2 +- 23 files changed, 23 insertions(+), 23 deletions(-) diff --git a/example/index.tsx b/example/index.tsx index cb56017..c1772be 100644 --- a/example/index.tsx +++ b/example/index.tsx @@ -1,4 +1,4 @@ -import React from 'react' +import * as React from 'react' // eslint-disable-next-line import/no-extraneous-dependencies import { render } from 'react-dom' import { diff --git a/src/ChasingDots/index.test.tsx b/src/ChasingDots/index.test.tsx index 1811048..70ee0ac 100644 --- a/src/ChasingDots/index.test.tsx +++ b/src/ChasingDots/index.test.tsx @@ -1,4 +1,4 @@ -import React from 'react' +import * as React from 'react' import renderer from 'react-test-renderer' import Comp from '.' diff --git a/src/ChasingDots/index.tsx b/src/ChasingDots/index.tsx index e38b697..cd3ee51 100644 --- a/src/ChasingDots/index.tsx +++ b/src/ChasingDots/index.tsx @@ -1,4 +1,4 @@ -import React from 'react' +import * as React from 'react' import { SpinkitProps, DEFAULT_SIZE, DEFAULT_COLOR } from '../types' import { StyledChangeDots, Child } from './styles' diff --git a/src/Circle/index.test.tsx b/src/Circle/index.test.tsx index 1811048..70ee0ac 100644 --- a/src/Circle/index.test.tsx +++ b/src/Circle/index.test.tsx @@ -1,4 +1,4 @@ -import React from 'react' +import * as React from 'react' import renderer from 'react-test-renderer' import Comp from '.' diff --git a/src/Circle/index.tsx b/src/Circle/index.tsx index 4b41a24..fb0758e 100644 --- a/src/Circle/index.tsx +++ b/src/Circle/index.tsx @@ -1,4 +1,4 @@ -import React from 'react' +import * as React from 'react' import { getRange, roundTo } from '../util' import { SpinkitProps, DEFAULT_SIZE, DEFAULT_COLOR } from '../types' import { Child, StyledCircle } from './styles' diff --git a/src/CubeGrid/index.test.tsx b/src/CubeGrid/index.test.tsx index 1811048..70ee0ac 100644 --- a/src/CubeGrid/index.test.tsx +++ b/src/CubeGrid/index.test.tsx @@ -1,4 +1,4 @@ -import React from 'react' +import * as React from 'react' import renderer from 'react-test-renderer' import Comp from '.' diff --git a/src/CubeGrid/index.tsx b/src/CubeGrid/index.tsx index 63d867e..cf4071d 100644 --- a/src/CubeGrid/index.tsx +++ b/src/CubeGrid/index.tsx @@ -1,4 +1,4 @@ -import React from 'react' +import * as React from 'react' import { SpinkitProps, DEFAULT_SIZE, DEFAULT_COLOR } from '../types' import { roundTo } from '../util' import { Child, StyledCubeGrid } from './styles' diff --git a/src/DoubleBounce/index.test.tsx b/src/DoubleBounce/index.test.tsx index 1811048..70ee0ac 100644 --- a/src/DoubleBounce/index.test.tsx +++ b/src/DoubleBounce/index.test.tsx @@ -1,4 +1,4 @@ -import React from 'react' +import * as React from 'react' import renderer from 'react-test-renderer' import Comp from '.' diff --git a/src/DoubleBounce/index.tsx b/src/DoubleBounce/index.tsx index d1b68d1..d257ffe 100644 --- a/src/DoubleBounce/index.tsx +++ b/src/DoubleBounce/index.tsx @@ -1,4 +1,4 @@ -import React from 'react' +import * as React from 'react' import { SpinkitProps, DEFAULT_SIZE, DEFAULT_COLOR } from '../types' import { Child, StyledDoubleBounce } from './styles' diff --git a/src/FadingCircle/index.test.tsx b/src/FadingCircle/index.test.tsx index 1811048..70ee0ac 100644 --- a/src/FadingCircle/index.test.tsx +++ b/src/FadingCircle/index.test.tsx @@ -1,4 +1,4 @@ -import React from 'react' +import * as React from 'react' import renderer from 'react-test-renderer' import Comp from '.' diff --git a/src/FadingCircle/index.tsx b/src/FadingCircle/index.tsx index 9313da0..f3bac54 100644 --- a/src/FadingCircle/index.tsx +++ b/src/FadingCircle/index.tsx @@ -1,4 +1,4 @@ -import React from 'react' +import * as React from 'react' import { getRange, roundTo } from '../util' import { SpinkitProps, DEFAULT_SIZE, DEFAULT_COLOR } from '../types' import { Child, StyledForldingCircle } from './styles' diff --git a/src/FoldingCube/index.test.tsx b/src/FoldingCube/index.test.tsx index 1811048..70ee0ac 100644 --- a/src/FoldingCube/index.test.tsx +++ b/src/FoldingCube/index.test.tsx @@ -1,4 +1,4 @@ -import React from 'react' +import * as React from 'react' import renderer from 'react-test-renderer' import Comp from '.' diff --git a/src/FoldingCube/index.tsx b/src/FoldingCube/index.tsx index 728c6a4..17fbf4e 100644 --- a/src/FoldingCube/index.tsx +++ b/src/FoldingCube/index.tsx @@ -1,4 +1,4 @@ -import React from 'react' +import * as React from 'react' import { SpinkitProps, DEFAULT_SIZE, DEFAULT_COLOR } from '../types' import { roundTo } from '../util' import { Child, StyledFoldingCube } from './styles' diff --git a/src/Pulse/index.test.tsx b/src/Pulse/index.test.tsx index 1811048..70ee0ac 100644 --- a/src/Pulse/index.test.tsx +++ b/src/Pulse/index.test.tsx @@ -1,4 +1,4 @@ -import React from 'react' +import * as React from 'react' import renderer from 'react-test-renderer' import Comp from '.' diff --git a/src/Pulse/index.tsx b/src/Pulse/index.tsx index bc92dd0..1f105de 100644 --- a/src/Pulse/index.tsx +++ b/src/Pulse/index.tsx @@ -1,4 +1,4 @@ -import React from 'react' +import * as React from 'react' import { SpinkitProps, DEFAULT_SIZE, DEFAULT_COLOR } from '../types' import StyledPulse from './styles' diff --git a/src/RotaingPlane/index.test.tsx b/src/RotaingPlane/index.test.tsx index 1811048..70ee0ac 100644 --- a/src/RotaingPlane/index.test.tsx +++ b/src/RotaingPlane/index.test.tsx @@ -1,4 +1,4 @@ -import React from 'react' +import * as React from 'react' import renderer from 'react-test-renderer' import Comp from '.' diff --git a/src/RotaingPlane/index.tsx b/src/RotaingPlane/index.tsx index 0a9da6d..24581ce 100644 --- a/src/RotaingPlane/index.tsx +++ b/src/RotaingPlane/index.tsx @@ -1,4 +1,4 @@ -import React from 'react' +import * as React from 'react' import { SpinkitProps, DEFAULT_SIZE, DEFAULT_COLOR } from '../types' import StyledRotaingPlain from './styles' diff --git a/src/ThreeBounce/index.test.tsx b/src/ThreeBounce/index.test.tsx index 1811048..70ee0ac 100644 --- a/src/ThreeBounce/index.test.tsx +++ b/src/ThreeBounce/index.test.tsx @@ -1,4 +1,4 @@ -import React from 'react' +import * as React from 'react' import renderer from 'react-test-renderer' import Comp from '.' diff --git a/src/ThreeBounce/index.tsx b/src/ThreeBounce/index.tsx index b758b7f..dd8cc04 100644 --- a/src/ThreeBounce/index.tsx +++ b/src/ThreeBounce/index.tsx @@ -1,4 +1,4 @@ -import React from 'react' +import * as React from 'react' import { SpinkitProps, DEFAULT_SIZE, DEFAULT_COLOR } from '../types' import { Child, StyledThreeBounce } from './styles' diff --git a/src/WanderingCubes/index.test.tsx b/src/WanderingCubes/index.test.tsx index 1811048..70ee0ac 100644 --- a/src/WanderingCubes/index.test.tsx +++ b/src/WanderingCubes/index.test.tsx @@ -1,4 +1,4 @@ -import React from 'react' +import * as React from 'react' import renderer from 'react-test-renderer' import Comp from '.' diff --git a/src/WanderingCubes/index.tsx b/src/WanderingCubes/index.tsx index 1a1539c..7f8933d 100644 --- a/src/WanderingCubes/index.tsx +++ b/src/WanderingCubes/index.tsx @@ -1,4 +1,4 @@ -import React from 'react' +import * as React from 'react' import { SpinkitProps, DEFAULT_SIZE, DEFAULT_COLOR } from '../types' import { roundTo } from '../util' import { Child, StyledWanderingCubes } from './styles' diff --git a/src/WaveLoading/index.test.tsx b/src/WaveLoading/index.test.tsx index 1811048..70ee0ac 100644 --- a/src/WaveLoading/index.test.tsx +++ b/src/WaveLoading/index.test.tsx @@ -1,4 +1,4 @@ -import React from 'react' +import * as React from 'react' import renderer from 'react-test-renderer' import Comp from '.' diff --git a/src/WaveLoading/index.tsx b/src/WaveLoading/index.tsx index 113efc1..9778262 100644 --- a/src/WaveLoading/index.tsx +++ b/src/WaveLoading/index.tsx @@ -1,4 +1,4 @@ -import React from 'react' +import * as React from 'react' import { getRange, roundTo } from '../util' import { SpinkitProps, DEFAULT_SIZE, DEFAULT_COLOR } from '../types' import { Rect, StyledWave } from './styles'