Selaa lähdekoodia

@uppy/status-bar: rename `StatusBar` to `StatusBarUI` (#5200)

Mikael Finstad 11 kuukautta sitten
vanhempi
commit
49f7c91a8e
1 muutettua tiedostoa jossa 2 lisäystä ja 3 poistoa
  1. 2 3
      packages/@uppy/status-bar/src/StatusBarUI.tsx

+ 2 - 3
packages/@uppy/status-bar/src/StatusBarUI.tsx

@@ -59,8 +59,7 @@ export interface StatusBarUIProps<M extends Meta, B extends Body> {
   totalUploadedSize: number
   totalUploadedSize: number
 }
 }
 
 
-// TODO: rename the function to StatusBarUI on the next major.
-export default function StatusBar<M extends Meta, B extends Body>(
+export default function StatusBarUI<M extends Meta, B extends Body>(
   props: StatusBarUIProps<M, B>,
   props: StatusBarUIProps<M, B>,
 ) {
 ) {
   const {
   const {
@@ -287,7 +286,7 @@ export default function StatusBar<M extends Meta, B extends Body>(
   )
   )
 }
 }
 
 
-StatusBar.defaultProps = {
+StatusBarUI.defaultProps = {
   doneButtonHandler: undefined,
   doneButtonHandler: undefined,
   hideAfterFinish: false,
   hideAfterFinish: false,
   hideCancelButton: false,
   hideCancelButton: false,