diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-16 04:39:00 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-16 04:39:00 +0800 |
commit | 14b47f3a9f18e8c348166036ea9decdd78c8699e (patch) | |
tree | 7e51fb559bdc1195a7cbae05fc3188f52a587072 /packages/instant/src/components/animations | |
parent | 20d60e2368b361e5055ddded9858cd11795b84d0 (diff) | |
download | dexon-sol-tools-14b47f3a9f18e8c348166036ea9decdd78c8699e.tar dexon-sol-tools-14b47f3a9f18e8c348166036ea9decdd78c8699e.tar.gz dexon-sol-tools-14b47f3a9f18e8c348166036ea9decdd78c8699e.tar.bz2 dexon-sol-tools-14b47f3a9f18e8c348166036ea9decdd78c8699e.tar.lz dexon-sol-tools-14b47f3a9f18e8c348166036ea9decdd78c8699e.tar.xz dexon-sol-tools-14b47f3a9f18e8c348166036ea9decdd78c8699e.tar.zst dexon-sol-tools-14b47f3a9f18e8c348166036ea9decdd78c8699e.zip |
better private function syntax
Diffstat (limited to 'packages/instant/src/components/animations')
-rw-r--r-- | packages/instant/src/components/animations/slide_up_and_down_animation.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/instant/src/components/animations/slide_up_and_down_animation.tsx b/packages/instant/src/components/animations/slide_up_and_down_animation.tsx index 05dda78be..ce38e28b9 100644 --- a/packages/instant/src/components/animations/slide_up_and_down_animation.tsx +++ b/packages/instant/src/components/animations/slide_up_and_down_animation.tsx @@ -90,9 +90,9 @@ export class SlideUpAndDownAnimation extends React.Component<SlideUpAndDownAnima window.clearTimeout(this._timeoutId); } } - private readonly _renderSlide = (): React.ReactNode => { + private _renderSlide(): React.ReactNode { const SlideComponent = this.state.slideState === 'up' ? SlideUpAnimationComponent : SlideDownAnimationComponent; return <SlideComponent downY={this.props.downY}>{this.props.children}</SlideComponent>; - }; + } } |