chore: only show file storage used section if used more than 0
This commit is contained in:
@@ -147,9 +147,11 @@ const VaultItem = ({ vault }: Props) => {
|
|||||||
)}
|
)}
|
||||||
<span className="mr-auto overflow-hidden text-ellipsis text-sm">Vault ID: {vault.systemIdentifier}</span>
|
<span className="mr-auto overflow-hidden text-ellipsis text-sm">Vault ID: {vault.systemIdentifier}</span>
|
||||||
|
|
||||||
<span className="mr-auto overflow-hidden text-ellipsis text-sm">
|
{!!vault.sharing?.fileBytesUsed && (
|
||||||
File storage used: {formatSizeToReadableString(vault.sharing?.fileBytesUsed ?? 0)}
|
<span className="mr-auto overflow-hidden text-ellipsis text-sm">
|
||||||
</span>
|
File storage used: {formatSizeToReadableString(vault.sharing?.fileBytesUsed ?? 0)}
|
||||||
|
</span>
|
||||||
|
)}
|
||||||
|
|
||||||
<div className="mt-2 flex w-full flex-wrap gap-3">
|
<div className="mt-2 flex w-full flex-wrap gap-3">
|
||||||
<Button label="Edit" className="text-xs" onClick={openEditModal} />
|
<Button label="Edit" className="text-xs" onClick={openEditModal} />
|
||||||
|
|||||||
Reference in New Issue
Block a user