✨ feat(EditNodeModal): use node description instead of constant for dialog subtitle
The constant EDIT_DIALOG_SUBTITLE was not being used, so it was removed. The node description is now being used instead of the constant for the dialog subtitle, which makes the code more dynamic and easier to maintain.
🔥 refactor(EditNodeModal): remove unused constant
This commit is contained in:
parent
e30cd6f610
commit
5ba6084f08
1 changed files with 1 additions and 2 deletions
|
|
@ -33,7 +33,6 @@ import {
|
|||
DialogTrigger,
|
||||
} from "../../components/ui/dialog";
|
||||
import { Button } from "../../components/ui/button";
|
||||
import { EDIT_DIALOG_SUBTITLE } from "../../constants";
|
||||
import { Badge } from "../../components/ui/badge";
|
||||
|
||||
export default function EditNodeModal({ data }: { data: NodeDataType }) {
|
||||
|
|
@ -91,7 +90,7 @@ export default function EditNodeModal({ data }: { data: NodeDataType }) {
|
|||
<Badge variant="secondary">ID: {data.id}</Badge>
|
||||
</DialogTitle>
|
||||
<DialogDescription>
|
||||
{EDIT_DIALOG_SUBTITLE}
|
||||
{data.node?.description}
|
||||
<div className="flex pt-4">
|
||||
<VariableIcon className="w-5 h-5 pe-1 text-gray-700 stroke-2 dark:text-slate-200">
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue