aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-16 04:39:00 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-16 04:39:00 +0800
commit14b47f3a9f18e8c348166036ea9decdd78c8699e (patch)
tree7e51fb559bdc1195a7cbae05fc3188f52a587072 /packages/instant
parent20d60e2368b361e5055ddded9858cd11795b84d0 (diff)
downloaddexon-sol-tools-14b47f3a9f18e8c348166036ea9decdd78c8699e.tar.gz
dexon-sol-tools-14b47f3a9f18e8c348166036ea9decdd78c8699e.tar.zst
dexon-sol-tools-14b47f3a9f18e8c348166036ea9decdd78c8699e.zip
better private function syntax
Diffstat (limited to 'packages/instant')
-rw-r--r--packages/instant/src/components/animations/slide_up_and_down_animation.tsx4
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>;
- };
+ }
}