aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-02 01:04:04 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-02 01:04:04 +0800
commit66b485c7d43df3600c04e1eb565952cc7726dcb1 (patch)
tree1ded9a8c87083283791d8baf2df30b4a140fea7e /packages/instant/src
parent9ef6f82a95c0faca0e6ba03ddd425271454dcfe3 (diff)
downloaddexon-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/src')
-rw-r--r--packages/instant/src/components/timed_progress_bar.tsx4
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>();