Thank you for the nice file manager component!
There is one small but significant bug: there is a typo in the file size units shown to users, using b for bits instead of B for bytes. This makes for completely incorrect file sizes from user's perspective.
There's also a slight inconsistency in the calculations when changing to a bigger unit: both 1024 and 1000 are used in the calculations.
Thank you for the nice file manager component!
There is one small but significant bug: there is a typo in the file size units shown to users, using b for bits instead of B for bytes. This makes for completely incorrect file sizes from user's perspective.
There's also a slight inconsistency in the calculations when changing to a bigger unit: both 1024 and 1000 are used in the calculations.