|
|
|
@ -25,10 +25,20 @@ export default function Disk({ options, expanded }) {
|
|
|
|
|
|
|
|
|
|
if (!data) {
|
|
|
|
|
return (
|
|
|
|
|
<div className="flex-none flex flex-row items-center mr-3 py-1.5">
|
|
|
|
|
<div className="flex-none flex flex-row items-center mr-3 py-1.5 animate-pulse">
|
|
|
|
|
<FiHardDrive className="text-theme-800 dark:text-theme-200 w-5 h-5" />
|
|
|
|
|
<div className="flex flex-col ml-3 text-left">
|
|
|
|
|
<span className="text-theme-800 dark:text-theme-200 text-xs">-</span>
|
|
|
|
|
<div className="flex flex-col ml-3 text-left min-w-[85px]">
|
|
|
|
|
<span className="text-theme-800 dark:text-theme-200 text-xs flex flex-row justify-between">
|
|
|
|
|
<div className="pl-0.5">-</div>
|
|
|
|
|
<div className="pr-1">{t("resources.free")}</div>
|
|
|
|
|
</span>
|
|
|
|
|
{expanded && (
|
|
|
|
|
<span className="text-theme-800 dark:text-theme-200 text-xs flex flex-row justify-between">
|
|
|
|
|
<div className="pl-0.5">-</div>
|
|
|
|
|
<div className="pr-1">{t("resources.total")}</div>
|
|
|
|
|
</span>
|
|
|
|
|
)}
|
|
|
|
|
<UsageBar percent={100} />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|