mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-02-12 02:39:17 +00:00
Update src/app/scripts/_components/ScriptItem.tsx
This commit is contained in:
parent
274abee370
commit
a08e1e326f
@ -5,7 +5,7 @@ import { Script } from "@/lib/types";
|
|||||||
import { X } from "lucide-react";
|
import { X } from "lucide-react";
|
||||||
import Image from "next/image";
|
import Image from "next/image";
|
||||||
|
|
||||||
import { getCorrectTypeNaming } from "./ScriptInfoBlocks";
|
import { getDisplayValueFromType } from "./ScriptInfoBlocks";
|
||||||
import Alerts from "./ScriptItems/Alerts";
|
import Alerts from "./ScriptItems/Alerts";
|
||||||
import Buttons from "./ScriptItems/Buttons";
|
import Buttons from "./ScriptItems/Buttons";
|
||||||
import DefaultPassword from "./ScriptItems/DefaultPassword";
|
import DefaultPassword from "./ScriptItems/DefaultPassword";
|
||||||
@ -52,7 +52,7 @@ function ScriptItem({
|
|||||||
<div className="ml-4 flex flex-col justify-between">
|
<div className="ml-4 flex flex-col justify-between">
|
||||||
<div className="flex h-full w-full flex-col justify-between">
|
<div className="flex h-full w-full flex-col justify-between">
|
||||||
<div>
|
<div>
|
||||||
<h1 className="text-lg font-semibold">{item.name} {getCorrectTypeNaming(item.type)}</h1>
|
<h1 className="text-lg font-semibold">{item.name} {getDisplayValueFromType(item.type)}</h1>
|
||||||
<p className="w-full text-sm text-muted-foreground">
|
<p className="w-full text-sm text-muted-foreground">
|
||||||
Date added: {extractDate(item.date_created)}
|
Date added: {extractDate(item.date_created)}
|
||||||
</p>
|
</p>
|
||||||
|
Loading…
Reference in New Issue
Block a user