diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-16 04:12:52 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-16 04:12:52 +0800 |
commit | af495143974941fb6cc4210b1965c17f007465e6 (patch) | |
tree | c7eb7429116cc3b0ef7fd737694f68e4b8ba66e8 /packages/instant/src/components/sliding_error.tsx | |
parent | 2aa4761d6dfaa007ed632816de9416a6477cd370 (diff) | |
download | dexon-0x-contracts-af495143974941fb6cc4210b1965c17f007465e6.tar.gz dexon-0x-contracts-af495143974941fb6cc4210b1965c17f007465e6.tar.zst dexon-0x-contracts-af495143974941fb6cc4210b1965c17f007465e6.zip |
suggestions from code review: renaming timeoutNumber to timeoutId, sharing interface, renaming component
Diffstat (limited to 'packages/instant/src/components/sliding_error.tsx')
-rw-r--r-- | packages/instant/src/components/sliding_error.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/instant/src/components/sliding_error.tsx b/packages/instant/src/components/sliding_error.tsx index 2e6decbad..0237fb7e9 100644 --- a/packages/instant/src/components/sliding_error.tsx +++ b/packages/instant/src/components/sliding_error.tsx @@ -2,7 +2,7 @@ import * as React from 'react'; import { ColorOption } from '../style/theme'; -import { SlideUpAndDownAnimationComponent } from './animations/slide_up_and_down_animation'; +import { SlideUpAndDownAnimation } from './animations/slide_up_and_down_animation'; import { Container, Text } from './ui'; @@ -30,7 +30,7 @@ export const Error: React.StatelessComponent<ErrorProps> = props => ( ); export const SlidingError: React.StatelessComponent<ErrorProps> = props => ( - <SlideUpAndDownAnimationComponent downY="120px" delayMs={5000}> + <SlideUpAndDownAnimation downY="120px" delayMs={5000}> <Error icon={props.icon} message={props.message} /> - </SlideUpAndDownAnimationComponent> + </SlideUpAndDownAnimation> ); |