From 339ec3e8ebac25fe7ee6eb26b89bfc9b9e00db26 Mon Sep 17 00:00:00 2001 From: August Skare Date: Tue, 20 Nov 2018 15:18:09 +0100 Subject: [PATCH] uniq export names for animations --- .../ts/components/animations/compiler/index.tsx | 2 +- .../dev-tools-pages/ts/components/animations/cov/index.tsx | 4 ++-- .../ts/components/animations/profiler/index.tsx | 4 ++-- .../dev-tools-pages/ts/components/animations/trace/index.tsx | 4 ++-- packages/dev-tools-pages/ts/pages/compiler.tsx | 4 ++-- packages/dev-tools-pages/ts/pages/cov.tsx | 4 ++-- packages/dev-tools-pages/ts/pages/profiler.tsx | 4 ++-- packages/dev-tools-pages/ts/pages/trace.tsx | 4 ++-- 8 files changed, 15 insertions(+), 15 deletions(-) diff --git a/packages/dev-tools-pages/ts/components/animations/compiler/index.tsx b/packages/dev-tools-pages/ts/components/animations/compiler/index.tsx index db93ff8a4b..ba98f8da3c 100644 --- a/packages/dev-tools-pages/ts/components/animations/compiler/index.tsx +++ b/packages/dev-tools-pages/ts/components/animations/compiler/index.tsx @@ -8,4 +8,4 @@ const CompilerAnimation: React.StatelessComponent<{}> = () => ( ); -export { CompilerAnimation as Animation }; +export { CompilerAnimation }; diff --git a/packages/dev-tools-pages/ts/components/animations/cov/index.tsx b/packages/dev-tools-pages/ts/components/animations/cov/index.tsx index 4458247171..bd872cc85f 100644 --- a/packages/dev-tools-pages/ts/components/animations/cov/index.tsx +++ b/packages/dev-tools-pages/ts/components/animations/cov/index.tsx @@ -4,8 +4,8 @@ import { BaseAnimation } from '../index'; import * as animationData from './data.json'; -const AnimationCov: React.StatelessComponent<{}> = () => ( +const CovAnimation: React.StatelessComponent<{}> = () => ( ); -export { AnimationCov as Animation }; +export { CovAnimation }; diff --git a/packages/dev-tools-pages/ts/components/animations/profiler/index.tsx b/packages/dev-tools-pages/ts/components/animations/profiler/index.tsx index 73a4e9ad63..a2848b7624 100644 --- a/packages/dev-tools-pages/ts/components/animations/profiler/index.tsx +++ b/packages/dev-tools-pages/ts/components/animations/profiler/index.tsx @@ -4,8 +4,8 @@ import { BaseAnimation } from '../index'; import * as animationData from './data.json'; -const AnimationProfiler: React.StatelessComponent<{}> = () => ( +const ProfilerAnimation: React.StatelessComponent<{}> = () => ( ); -export { AnimationProfiler as Animation }; +export { ProfilerAnimation }; diff --git a/packages/dev-tools-pages/ts/components/animations/trace/index.tsx b/packages/dev-tools-pages/ts/components/animations/trace/index.tsx index 10a78ccb73..2009c3cec1 100644 --- a/packages/dev-tools-pages/ts/components/animations/trace/index.tsx +++ b/packages/dev-tools-pages/ts/components/animations/trace/index.tsx @@ -4,8 +4,8 @@ import { BaseAnimation } from '../index'; import * as animationData from './data.json'; -const AnimationTrace: React.StatelessComponent<{}> = () => ( +const TraceAnimation: React.StatelessComponent<{}> = () => ( ); -export { AnimationTrace as Animation }; +export { TraceAnimation }; diff --git a/packages/dev-tools-pages/ts/pages/compiler.tsx b/packages/dev-tools-pages/ts/pages/compiler.tsx index 912589b51d..93a667562e 100644 --- a/packages/dev-tools-pages/ts/pages/compiler.tsx +++ b/packages/dev-tools-pages/ts/pages/compiler.tsx @@ -18,8 +18,8 @@ const Animation = Loadable({ loader: () => System.import(/* webpackChunkName: 'compiler-animation' */ 'ts/components/animations/compiler'), loading: () =>
, delay: 1000, - render(loadable: { Animation: any }): React.ReactNode { - const Component = loadable.Animation; + render(loadable: { CompilerAnimation: any }): React.ReactNode { + const Component = loadable.CompilerAnimation; return ; }, }); diff --git a/packages/dev-tools-pages/ts/pages/cov.tsx b/packages/dev-tools-pages/ts/pages/cov.tsx index ebaf5bfb2a..ff1ced27da 100644 --- a/packages/dev-tools-pages/ts/pages/cov.tsx +++ b/packages/dev-tools-pages/ts/pages/cov.tsx @@ -19,8 +19,8 @@ const Animation = Loadable({ loader: () => System.import(/* webpackChunkName: 'cov-animation' */ 'ts/components/animations/cov'), loading: () =>
, delay: 1000, - render(loadable: { Animation: any }): React.ReactNode { - const Component = loadable.Animation; + render(loadable: { CovAnimation: any }): React.ReactNode { + const Component = loadable.CovAnimation; return ; }, }); diff --git a/packages/dev-tools-pages/ts/pages/profiler.tsx b/packages/dev-tools-pages/ts/pages/profiler.tsx index 040b439e8f..860e2c25ef 100644 --- a/packages/dev-tools-pages/ts/pages/profiler.tsx +++ b/packages/dev-tools-pages/ts/pages/profiler.tsx @@ -19,8 +19,8 @@ const Animation = Loadable({ loader: () => System.import(/* webpackChunkName: 'profiler-animation' */ 'ts/components/animations/profiler'), loading: () =>
, delay: 1000, - render(loadable: { Animation: any }): React.ReactNode { - const Component = loadable.Animation; + render(loadable: { ProfilerAnimation: any }): React.ReactNode { + const Component = loadable.ProfilerAnimation; return ; }, }); diff --git a/packages/dev-tools-pages/ts/pages/trace.tsx b/packages/dev-tools-pages/ts/pages/trace.tsx index acb8fb8417..a25d2eff8c 100644 --- a/packages/dev-tools-pages/ts/pages/trace.tsx +++ b/packages/dev-tools-pages/ts/pages/trace.tsx @@ -19,8 +19,8 @@ const Animation = Loadable({ loader: () => System.import(/* webpackChunkName: 'trace-animation' */ 'ts/components/animations/trace'), loading: () =>
, delay: 1000, - render(loadable: { Animation: any }): React.ReactNode { - const Component = loadable.Animation; + render(loadable: { TraceAnimation: any }): React.ReactNode { + const Component = loadable.TraceAnimation; return ; }, });