refactor: Improve conditional rendering in ScriptItem component for better clarity on item usage instructions

This commit is contained in:
Bram Suurd
2024-08-09 02:56:44 +02:00
parent e19bd22267
commit 48e9b03dec

View File

@@ -389,7 +389,7 @@ function ScriptItem({
</Tabs>
) : (
<>
{item.item_type && (
{item.item_type ? (
<>
<p className="text-sm">
To create a new Proxmox VE {item.title}{" "}
@@ -397,6 +397,13 @@ function ScriptItem({
Proxmox VE Shell.
</p>
</>
) : (
<>
<p className="text-sm">
To use the {item.title} script, run
the command below in the shell.
</p>
</>
)}
{installCommand && (
<CodeCopyButton>{installCommand}</CodeCopyButton>