diff --git a/src/widgets/chain-editor/ui/ChainEditor.tsx b/src/widgets/chain-editor/ui/ChainEditor.tsx index 4a541d5..662a9a5 100644 --- a/src/widgets/chain-editor/ui/ChainEditor.tsx +++ b/src/widgets/chain-editor/ui/ChainEditor.tsx @@ -5,6 +5,7 @@ import { useNavigate } from "@tanstack/react-router"; import { useState, useRef } from "react"; import humanizeDuration from "humanize-duration"; import { upsertChain } from "@/entities/chain/api/upsert"; +import { ChangeWaitForButton } from "@/features/change-wait-for"; import { ActionEditor } from "@/widgets/action-editor"; import { RenameChainButton } from "@/features/rename-chain"; @@ -12,7 +13,6 @@ import { DeleteChainButton } from "@/features/delete-chain"; import { Typography, Button } from "@mui/material"; import Breadcrumbs from "@mui/material/Breadcrumbs"; -import SettingsIcon from "@mui/icons-material/Settings"; interface ChainEditorProps { chain: Chain; @@ -96,14 +96,14 @@ export default function ChainEditor({ chain }: ChainEditorProps) {
{chain.actions.map((action, index) => { if (action.actionType === "comment") return (
{action.text}
@@ -115,13 +115,15 @@ export default function ChainEditor({ chain }: ChainEditorProps) { className="relative flex select-none items-center gap-x-2 text-[#4C4E64DE] opacity-[84%] before:absolute before:-top-6 before:left-1/2 before:h-4 before:w-4 before:-translate-x-1/2 before:rounded-full before:border-[2.5px] before:border-primary after:absolute after:left-1/2 after:top-11 after:h-16 after:w-1 after:-translate-x-1/2 after:rounded-md after:bg-[#666CFF] after:opacity-[12%]" > - Ожидание:{" "} + Задержка:{" "} {humanizeDuration(action.waitFor * 1000, { language: "ru" })} - +
); })}