Fix progress bar regression throughout the app (#9219)
* Fix useSmoothAnimation enablement not working properly by getting rid of it Passing duration=0 is more logical and less superfluous * Refactor UploadBar to handle state more correctly * Change ProgressBar to new useSmoothAnimation signature and default animated to true for consistency * Add type guard * Make types stricter * Write tests for the ProgressBar component * Make the new test conform to tsc --strict * Update UploadBar.tsx * Update UploadBar.tsx * Update UploadBar.tsx
This commit is contained in:
parent
6407cd4c0d
commit
9b99c967f4
5 changed files with 105 additions and 37 deletions
|
@ -18,7 +18,7 @@ import { ActionPayload } from "../payloads";
|
|||
import { Action } from "../actions";
|
||||
import { IUpload } from "../../models/IUpload";
|
||||
|
||||
interface UploadPayload extends ActionPayload {
|
||||
export interface UploadPayload extends ActionPayload {
|
||||
/**
|
||||
* The upload with fields representing the new upload state.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue