Minor cleanup

Don't export beginningState, and updating prop name in comment
This commit is contained in:
Steve Klebanoff
2018-11-01 10:04:04 -07:00
parent 9ef6f82a95
commit 66b485c7d4

View File

@@ -17,7 +17,7 @@ interface TimedProgressBarState {
maxWidthPercent: number; maxWidthPercent: number;
} }
export const beginningState = (props: TimedProgressBarProps): TimedProgressBarState => { const beginningState = (props: TimedProgressBarProps): TimedProgressBarState => {
return { return {
animationTimeMs: props.expectedTimeMs, animationTimeMs: props.expectedTimeMs,
animationStartingWidth: '0%', animationStartingWidth: '0%',
@@ -28,7 +28,7 @@ export const beginningState = (props: TimedProgressBarProps): TimedProgressBarSt
/** /**
* Timed Progress Bar * Timed Progress Bar
* Goes from 0% -> PROGRESS_STALL_AT_PERCENTAGE% over time of expectedTimeMs * 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> { export class TimedProgressBar extends React.Component<TimedProgressBarProps, TimedProgressBarState> {
private readonly _barRef = React.createRef<HTMLDivElement>(); private readonly _barRef = React.createRef<HTMLDivElement>();