Update progress dialog on the sidebar

This commit is contained in:
Vishnu Mohandas 2021-04-23 13:06:21 +05:30
parent de13b957b9
commit d694e36495

View file

@ -147,16 +147,20 @@ export default function Sidebar(props: Props) {
{constants.USAGE_DETAILS}
</h5>
<div style={{ color: '#959595' }}>
{usage ? (
constants.USAGE_INFO(
usage,
Math.ceil(
Number(convertBytesToGBs(subscription?.storage))
{
usage ? (
constants.USAGE_INFO(
usage,
Math.ceil(
Number(convertBytesToGBs(subscription?.storage))
)
)
)
) : (
<EnteSpinner />
)}
) :
(
<div style={{ textAlign: 'center' }}>
<EnteSpinner style={{ borderWidth: '2px', width: '20px', height: '20px' }} />
</div>
)}
</div>
</div>
<div