1
0
mirror of https://github.com/community-scripts/ProxmoxVE.git synced 2025-02-01 20:31:51 +00:00

Update page.tsx

This commit is contained in:
CanbiZ 2025-01-27 14:07:56 +01:00 committed by GitHub
parent b17befec88
commit 43f05b3aba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -74,7 +74,14 @@ const CategoryView = () => {
if (hdd) resourceParts.push(<span key="hdd"><b>HDD:</b> {hdd}GB</span>); if (hdd) resourceParts.push(<span key="hdd"><b>HDD:</b> {hdd}GB</span>);
return resourceParts.length > 0 ? ( return resourceParts.length > 0 ? (
<div className="text-sm text-gray-400">{resourceParts.reduce((prev, curr) => [prev, " | ", curr])}</div> <div className="text-sm text-gray-400">
{resourceParts.map((part, index) => (
<React.Fragment key={index}>
{part}
{index < resourceParts.length - 1 && " | "}
</React.Fragment>
))}
</div>
) : null; ) : null;
}; };