Adding key-value to modal subtitles
This commit is contained in:
parent
73b3220334
commit
736cbb83db
5 changed files with 16 additions and 8 deletions
|
|
@ -42,6 +42,7 @@ import {
|
||||||
DialogTrigger,
|
DialogTrigger,
|
||||||
} from "../../components/ui/dialog";
|
} from "../../components/ui/dialog";
|
||||||
import { Button } from "../../components/ui/button";
|
import { Button } from "../../components/ui/button";
|
||||||
|
import { modalSubtitle } from "../modal-texts";
|
||||||
|
|
||||||
export default function EditNodeModal({ data }: { data: NodeDataType }) {
|
export default function EditNodeModal({ data }: { data: NodeDataType }) {
|
||||||
const [open, setOpen] = useState(true);
|
const [open, setOpen] = useState(true);
|
||||||
|
|
@ -102,8 +103,7 @@ export default function EditNodeModal({ data }: { data: NodeDataType }) {
|
||||||
/>
|
/>
|
||||||
</DialogTitle>
|
</DialogTitle>
|
||||||
<DialogDescription>
|
<DialogDescription>
|
||||||
Make configurations changes to your nodes. Click save when you're
|
{modalSubtitle['edit']}
|
||||||
done.
|
|
||||||
<div className="flex pt-3">
|
<div className="flex pt-3">
|
||||||
<VariableIcon className="w-5 h-5 pe-1 text-gray-700 stroke-2">
|
<VariableIcon className="w-5 h-5 pe-1 text-gray-700 stroke-2">
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,7 @@ import {
|
||||||
DialogTrigger,
|
DialogTrigger,
|
||||||
} from "../../components/ui/dialog";
|
} from "../../components/ui/dialog";
|
||||||
import { Button } from "../../components/ui/button";
|
import { Button } from "../../components/ui/button";
|
||||||
|
import { modalSubtitle } from "../modal-texts";
|
||||||
|
|
||||||
export default function CodeAreaModal({
|
export default function CodeAreaModal({
|
||||||
value,
|
value,
|
||||||
|
|
@ -56,8 +57,7 @@ export default function CodeAreaModal({
|
||||||
/>
|
/>
|
||||||
</DialogTitle>
|
</DialogTitle>
|
||||||
<DialogDescription>
|
<DialogDescription>
|
||||||
Make configurations changes to your nodes. Click save when you're
|
{modalSubtitle['codeprompt']}
|
||||||
done.
|
|
||||||
</DialogDescription>
|
</DialogDescription>
|
||||||
</DialogHeader>
|
</DialogHeader>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@ import { Label } from "@radix-ui/react-label";
|
||||||
import { Checkbox } from "../../components/ui/checkbox";
|
import { Checkbox } from "../../components/ui/checkbox";
|
||||||
import { Textarea } from "../../components/ui/textarea";
|
import { Textarea } from "../../components/ui/textarea";
|
||||||
import { Input } from "../../components/ui/input";
|
import { Input } from "../../components/ui/input";
|
||||||
|
import { modalSubtitle } from "../modal-texts";
|
||||||
|
|
||||||
export default function ExportModal() {
|
export default function ExportModal() {
|
||||||
const [open, setOpen] = useState(true);
|
const [open, setOpen] = useState(true);
|
||||||
|
|
@ -53,8 +54,7 @@ export default function ExportModal() {
|
||||||
/>
|
/>
|
||||||
</DialogTitle>
|
</DialogTitle>
|
||||||
<DialogDescription>
|
<DialogDescription>
|
||||||
Make configurations changes to your nodes. Click save when you're
|
{modalSubtitle['export']}
|
||||||
done.
|
|
||||||
</DialogDescription>
|
</DialogDescription>
|
||||||
</DialogHeader>
|
</DialogHeader>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,7 @@ import {
|
||||||
} from "../../components/ui/dialog";
|
} from "../../components/ui/dialog";
|
||||||
import { Button } from "../../components/ui/button";
|
import { Button } from "../../components/ui/button";
|
||||||
import { Textarea } from "../../components/ui/textarea";
|
import { Textarea } from "../../components/ui/textarea";
|
||||||
|
import { modalSubtitle } from "../modal-texts";
|
||||||
|
|
||||||
export default function PromptAreaModal({
|
export default function PromptAreaModal({
|
||||||
value,
|
value,
|
||||||
|
|
@ -59,8 +60,7 @@ export default function PromptAreaModal({
|
||||||
/>
|
/>
|
||||||
</DialogTitle>
|
</DialogTitle>
|
||||||
<DialogDescription>
|
<DialogDescription>
|
||||||
Make configurations changes to your nodes. Click save when you're
|
{modalSubtitle['prompt']}
|
||||||
done.
|
|
||||||
</DialogDescription>
|
</DialogDescription>
|
||||||
</DialogHeader>
|
</DialogHeader>
|
||||||
|
|
||||||
|
|
|
||||||
8
src/frontend/src/modals/modal-texts.tsx
Normal file
8
src/frontend/src/modals/modal-texts.tsx
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
|
||||||
|
export const modalSubtitle = {
|
||||||
|
export: "Export your models.",
|
||||||
|
code: "Export your flow to use it with this code.",
|
||||||
|
edit: "Make configurations changes to your nodes. Click save when you're done.",
|
||||||
|
codeprompt: "Edit you python code.",
|
||||||
|
prompt: "Edit you prompt."
|
||||||
|
};
|
||||||
Loading…
Add table
Add a link
Reference in a new issue