diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-11-02 01:04:04 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-11-02 01:04:04 +0800 |
commit | 66b485c7d43df3600c04e1eb565952cc7726dcb1 (patch) | |
tree | 1ded9a8c87083283791d8baf2df30b4a140fea7e /packages/instant | |
parent | 9ef6f82a95c0faca0e6ba03ddd425271454dcfe3 (diff) | |
download | dexon-sol-tools-66b485c7d43df3600c04e1eb565952cc7726dcb1.tar dexon-sol-tools-66b485c7d43df3600c04e1eb565952cc7726dcb1.tar.gz dexon-sol-tools-66b485c7d43df3600c04e1eb565952cc7726dcb1.tar.bz2 dexon-sol-tools-66b485c7d43df3600c04e1eb565952cc7726dcb1.tar.lz dexon-sol-tools-66b485c7d43df3600c04e1eb565952cc7726dcb1.tar.xz dexon-sol-tools-66b485c7d43df3600c04e1eb565952cc7726dcb1.tar.zst dexon-sol-tools-66b485c7d43df3600c04e1eb565952cc7726dcb1.zip |
Minor cleanup
Don't export beginningState, and updating prop name in comment
Diffstat (limited to 'packages/instant')
-rw-r--r-- | packages/instant/src/components/timed_progress_bar.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/instant/src/components/timed_progress_bar.tsx b/packages/instant/src/components/timed_progress_bar.tsx index 16781b9d7..8dc95808b 100644 --- a/packages/instant/src/components/timed_progress_bar.tsx +++ b/packages/instant/src/components/timed_progress_bar.tsx @@ -17,7 +17,7 @@ interface TimedProgressBarState { maxWidthPercent: number; } -export const beginningState = (props: TimedProgressBarProps): TimedProgressBarState => { +const beginningState = (props: TimedProgressBarProps): TimedProgressBarState => { return { animationTimeMs: props.expectedTimeMs, animationStartingWidth: '0%', @@ -28,7 +28,7 @@ export const beginningState = (props: TimedProgressBarProps): TimedProgressBarSt /** * Timed Progress Bar * Goes from 0% -> PROGRESS_STALL_AT_PERCENTAGE% over time of expectedTimeMs - * When ended set to true, goes to 100% through animation of PROGRESS_FINISH_ANIMATION_TIME_MS length + * When hasEnded set to true, goes to 100% through animation of PROGRESS_FINISH_ANIMATION_TIME_MS length */ export class TimedProgressBar extends React.Component<TimedProgressBarProps, TimedProgressBarState> { private readonly _barRef = React.createRef<HTMLDivElement>(); |