From 8b36a27056b934126c0a31e84578fb9d9aa29287 Mon Sep 17 00:00:00 2001 From: cristhianzl Date: Thu, 2 May 2024 16:22:03 -0300 Subject: [PATCH 01/37] fix components names --- src/frontend/src/App.tsx | 2 +- .../index.tsx | 0 .../src/components/cardComponent/index.tsx | 4 +- .../src/components/chatComponent/index.tsx | 2 +- .../components/codeTabsComponent/index.tsx | 6 +-- .../index.tsx | 0 .../index.tsx | 0 .../index.tsx | 0 .../src/components/exampleComponent/index.tsx | 2 +- .../components/menuBar/index.tsx | 2 +- .../components/inputGlobalComponent/index.tsx | 7 ++- .../index.tsx | 0 .../index.tsx | 0 .../index.tsx | 0 .../chat/index.tsx | 0 .../components/parameterComponent/index.tsx | 2 +- .../genericNode}/index.tsx | 2 +- .../components/chatView/chatMessage/index.tsx | 2 +- src/frontend/src/modals/IOModal/index.tsx | 4 +- .../modals/{ApiModal => apiModal}/index.tsx | 0 .../index.tsx | 2 +- .../index.tsx | 0 .../index.tsx | 2 +- src/frontend/src/modals/exportModal/index.tsx | 2 +- .../src/modals/flowSettingsModal/index.tsx | 2 +- .../src/modals/genericModal/index.tsx | 4 +- .../components/NewFlowCardComponent/index.tsx | 0 .../components/undrawCards/index.tsx | 0 .../{NewFlowModal => newFlowModal}/index.tsx | 0 .../components/modalField}/index.tsx | 0 .../index.tsx | 0 src/frontend/src/modals/shareModal/index.tsx | 46 ++++++++++--------- .../index.tsx | 0 .../index.tsx | 0 src/frontend/src/pages/AdminPage/index.tsx | 8 ++-- src/frontend/src/pages/ApiKeysPage/index.tsx | 6 +-- .../components/PageComponent/index.tsx | 2 +- .../extraSidebarComponent/index.tsx | 2 +- .../components/nodeToolbarComponent/index.tsx | 6 +-- .../MainPage/components/components/index.tsx | 2 +- src/frontend/src/pages/MainPage/index.tsx | 4 +- src/frontend/src/pages/StorePage/index.tsx | 6 +-- 42 files changed, 67 insertions(+), 62 deletions(-) rename src/frontend/src/components/{AccordionComponent => accordionComponent}/index.tsx (100%) rename src/frontend/src/components/{CrashErrorComponent => crashErrorComponent}/index.tsx (100%) rename src/frontend/src/components/{DropdownButtonComponent => dropdownButtonComponent}/index.tsx (100%) rename src/frontend/src/components/{EditFlowSettingsComponent => editFlowSettingsComponent}/index.tsx (100%) rename src/frontend/src/components/{PaginatorComponent => paginatorComponent}/index.tsx (100%) rename src/frontend/src/components/{SanitizedHTMLWrapper => sanitizedHTMLWrapper}/index.tsx (100%) rename src/frontend/src/components/{ShadTooltipComponent => shadTooltipComponent}/index.tsx (100%) rename src/frontend/src/components/{ViewTriggers => viewTriggers}/chat/index.tsx (100%) rename src/frontend/src/{CustomNodes/GenericNode => customNodes/genericNode}/components/parameterComponent/index.tsx (99%) rename src/frontend/src/{CustomNodes/GenericNode => customNodes/genericNode}/index.tsx (99%) rename src/frontend/src/modals/{ApiModal => apiModal}/index.tsx (100%) rename src/frontend/src/modals/{ConfirmationModal => confirmationModal}/index.tsx (97%) rename src/frontend/src/modals/{DeleteConfirmationModal => deleteConfirmationModal}/index.tsx (100%) rename src/frontend/src/modals/{EditNodeModal => editNodeModal}/index.tsx (99%) rename src/frontend/src/modals/{NewFlowModal => newFlowModal}/components/NewFlowCardComponent/index.tsx (100%) rename src/frontend/src/modals/{NewFlowModal => newFlowModal}/components/undrawCards/index.tsx (100%) rename src/frontend/src/modals/{NewFlowModal => newFlowModal}/index.tsx (100%) rename src/frontend/src/modals/{NodeModal/components/ModalField => nodeModal/components/modalField}/index.tsx (100%) rename src/frontend/src/modals/{SecretKeyModal => secretKeyModal}/index.tsx (100%) rename src/frontend/src/modals/{StoreApiKeyModal => storeApiKeyModal}/index.tsx (100%) rename src/frontend/src/modals/{UserManagementModal => userManagementModal}/index.tsx (100%) diff --git a/src/frontend/src/App.tsx b/src/frontend/src/App.tsx index 1a04e08f7..2d8fc3caa 100644 --- a/src/frontend/src/App.tsx +++ b/src/frontend/src/App.tsx @@ -6,7 +6,7 @@ import "./App.css"; import ErrorAlert from "./alerts/error"; import NoticeAlert from "./alerts/notice"; import SuccessAlert from "./alerts/success"; -import CrashErrorComponent from "./components/CrashErrorComponent"; +import CrashErrorComponent from "./components/crashErrorComponent"; import FetchErrorComponent from "./components/fetchErrorComponent"; import LoadingComponent from "./components/loadingComponent"; import { diff --git a/src/frontend/src/components/AccordionComponent/index.tsx b/src/frontend/src/components/accordionComponent/index.tsx similarity index 100% rename from src/frontend/src/components/AccordionComponent/index.tsx rename to src/frontend/src/components/accordionComponent/index.tsx diff --git a/src/frontend/src/components/cardComponent/index.tsx b/src/frontend/src/components/cardComponent/index.tsx index 20f44cbde..3eb605fcb 100644 --- a/src/frontend/src/components/cardComponent/index.tsx +++ b/src/frontend/src/components/cardComponent/index.tsx @@ -1,7 +1,7 @@ import { useEffect, useState } from "react"; import { getComponent, postLikeComponent } from "../../controllers/API"; -import DeleteConfirmationModal from "../../modals/DeleteConfirmationModal"; import IOModal from "../../modals/IOModal"; +import DeleteConfirmationModal from "../../modals/deleteConfirmationModal"; import useAlertStore from "../../stores/alertStore"; import useFlowStore from "../../stores/flowStore"; import useFlowsManagerStore from "../../stores/flowsManagerStore"; @@ -9,8 +9,8 @@ import { useStoreStore } from "../../stores/storeStore"; import { storeComponent } from "../../types/store"; import cloneFLowWithParent from "../../utils/storeUtils"; import { cn } from "../../utils/utils"; -import ShadTooltip from "../ShadTooltipComponent"; import IconComponent from "../genericIconComponent"; +import ShadTooltip from "../shadTooltipComponent"; import { Badge } from "../ui/badge"; import { Button } from "../ui/button"; import { diff --git a/src/frontend/src/components/chatComponent/index.tsx b/src/frontend/src/components/chatComponent/index.tsx index cac3c548a..d483f95ee 100644 --- a/src/frontend/src/components/chatComponent/index.tsx +++ b/src/frontend/src/components/chatComponent/index.tsx @@ -1,7 +1,7 @@ import { Transition } from "@headlessui/react"; import { useEffect, useMemo, useRef, useState } from "react"; -import ApiModal from "../../modals/ApiModal"; import IOModal from "../../modals/IOModal"; +import ApiModal from "../../modals/apiModal"; import ShareModal from "../../modals/shareModal"; import useFlowStore from "../../stores/flowStore"; import useFlowsManagerStore from "../../stores/flowsManagerStore"; diff --git a/src/frontend/src/components/codeTabsComponent/index.tsx b/src/frontend/src/components/codeTabsComponent/index.tsx index a3c581313..3d1c3af82 100644 --- a/src/frontend/src/components/codeTabsComponent/index.tsx +++ b/src/frontend/src/components/codeTabsComponent/index.tsx @@ -2,7 +2,6 @@ import { cloneDeep } from "lodash"; import { useEffect, useState } from "react"; import { Prism as SyntaxHighlighter } from "react-syntax-highlighter"; import { oneDark } from "react-syntax-highlighter/dist/cjs/styles/prism"; -import AccordionComponent from "../../components/AccordionComponent"; import CodeAreaComponent from "../../components/codeAreaComponent"; import Dropdown from "../../components/dropdownComponent"; import FloatComponent from "../../components/floatComponent"; @@ -36,11 +35,12 @@ import { hasDuplicateKeys, } from "../../utils/reactflowUtils"; import { classNames } from "../../utils/utils"; -import ShadTooltip from "../ShadTooltipComponent"; +import AccordionComponent from "../accordionComponent"; import DictComponent from "../dictComponent"; import IconComponent from "../genericIconComponent"; -import KeypairListComponent from "../keypairListComponent"; import InputComponent from "../inputComponent"; +import KeypairListComponent from "../keypairListComponent"; +import ShadTooltip from "../shadTooltipComponent"; export default function CodeTabsComponent({ flow, diff --git a/src/frontend/src/components/CrashErrorComponent/index.tsx b/src/frontend/src/components/crashErrorComponent/index.tsx similarity index 100% rename from src/frontend/src/components/CrashErrorComponent/index.tsx rename to src/frontend/src/components/crashErrorComponent/index.tsx diff --git a/src/frontend/src/components/DropdownButtonComponent/index.tsx b/src/frontend/src/components/dropdownButtonComponent/index.tsx similarity index 100% rename from src/frontend/src/components/DropdownButtonComponent/index.tsx rename to src/frontend/src/components/dropdownButtonComponent/index.tsx diff --git a/src/frontend/src/components/EditFlowSettingsComponent/index.tsx b/src/frontend/src/components/editFlowSettingsComponent/index.tsx similarity index 100% rename from src/frontend/src/components/EditFlowSettingsComponent/index.tsx rename to src/frontend/src/components/editFlowSettingsComponent/index.tsx diff --git a/src/frontend/src/components/exampleComponent/index.tsx b/src/frontend/src/components/exampleComponent/index.tsx index 347797c47..8df1c2d05 100644 --- a/src/frontend/src/components/exampleComponent/index.tsx +++ b/src/frontend/src/components/exampleComponent/index.tsx @@ -3,8 +3,8 @@ import useFlowsManagerStore from "../../stores/flowsManagerStore"; import { FlowType } from "../../types/flow"; import { updateIds } from "../../utils/reactflowUtils"; import { cn } from "../../utils/utils"; -import ShadTooltip from "../ShadTooltipComponent"; import IconComponent from "../genericIconComponent"; +import ShadTooltip from "../shadTooltipComponent"; import { Button } from "../ui/button"; import { Card, diff --git a/src/frontend/src/components/headerComponent/components/menuBar/index.tsx b/src/frontend/src/components/headerComponent/components/menuBar/index.tsx index d61f64620..85a586b16 100644 --- a/src/frontend/src/components/headerComponent/components/menuBar/index.tsx +++ b/src/frontend/src/components/headerComponent/components/menuBar/index.tsx @@ -17,8 +17,8 @@ import useAlertStore from "../../../../stores/alertStore"; import useFlowStore from "../../../../stores/flowStore"; import useFlowsManagerStore from "../../../../stores/flowsManagerStore"; import { cn } from "../../../../utils/utils"; -import ShadTooltip from "../../../ShadTooltipComponent"; import IconComponent from "../../../genericIconComponent"; +import ShadTooltip from "../../../shadTooltipComponent"; import { Button } from "../../../ui/button"; export const MenuBar = ({ diff --git a/src/frontend/src/components/inputGlobalComponent/index.tsx b/src/frontend/src/components/inputGlobalComponent/index.tsx index f3b5b3b29..3e6b340cb 100644 --- a/src/frontend/src/components/inputGlobalComponent/index.tsx +++ b/src/frontend/src/components/inputGlobalComponent/index.tsx @@ -1,6 +1,6 @@ import { useEffect } from "react"; import { deleteGlobalVariable } from "../../controllers/API"; -import DeleteConfirmationModal from "../../modals/DeleteConfirmationModal"; +import DeleteConfirmationModal from "../../modals/deleteConfirmationModal"; import useAlertStore from "../../stores/alertStore"; import { useGlobalVariablesStore } from "../../stores/globalVariables"; import { InputGlobalComponentType } from "../../types/components"; @@ -49,7 +49,10 @@ export default function InputGlobalComponent({ !data.node?.template[name].value && data.node?.template[name].display_name ) { - if (unavaliableFields[data.node?.template[name].display_name!] && !disabled) { + if ( + unavaliableFields[data.node?.template[name].display_name!] && + !disabled + ) { setTimeout(() => { setDb(true); onChange(unavaliableFields[data.node?.template[name].display_name!]); diff --git a/src/frontend/src/components/PaginatorComponent/index.tsx b/src/frontend/src/components/paginatorComponent/index.tsx similarity index 100% rename from src/frontend/src/components/PaginatorComponent/index.tsx rename to src/frontend/src/components/paginatorComponent/index.tsx diff --git a/src/frontend/src/components/SanitizedHTMLWrapper/index.tsx b/src/frontend/src/components/sanitizedHTMLWrapper/index.tsx similarity index 100% rename from src/frontend/src/components/SanitizedHTMLWrapper/index.tsx rename to src/frontend/src/components/sanitizedHTMLWrapper/index.tsx diff --git a/src/frontend/src/components/ShadTooltipComponent/index.tsx b/src/frontend/src/components/shadTooltipComponent/index.tsx similarity index 100% rename from src/frontend/src/components/ShadTooltipComponent/index.tsx rename to src/frontend/src/components/shadTooltipComponent/index.tsx diff --git a/src/frontend/src/components/ViewTriggers/chat/index.tsx b/src/frontend/src/components/viewTriggers/chat/index.tsx similarity index 100% rename from src/frontend/src/components/ViewTriggers/chat/index.tsx rename to src/frontend/src/components/viewTriggers/chat/index.tsx diff --git a/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx b/src/frontend/src/customNodes/genericNode/components/parameterComponent/index.tsx similarity index 99% rename from src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx rename to src/frontend/src/customNodes/genericNode/components/parameterComponent/index.tsx index ad00225b8..3fe99b89e 100644 --- a/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx +++ b/src/frontend/src/customNodes/genericNode/components/parameterComponent/index.tsx @@ -1,7 +1,6 @@ import { cloneDeep } from "lodash"; import React, { ReactNode, useEffect, useRef, useState } from "react"; import { Handle, Position, useUpdateNodeInternals } from "reactflow"; -import ShadTooltip from "../../../../components/ShadTooltipComponent"; import CodeAreaComponent from "../../../../components/codeAreaComponent"; import DictComponent from "../../../../components/dictComponent"; import Dropdown from "../../../../components/dropdownComponent"; @@ -13,6 +12,7 @@ import InputListComponent from "../../../../components/inputListComponent"; import IntComponent from "../../../../components/intComponent"; import KeypairListComponent from "../../../../components/keypairListComponent"; import PromptAreaComponent from "../../../../components/promptComponent"; +import ShadTooltip from "../../../../components/shadTooltipComponent"; import TextAreaComponent from "../../../../components/textAreaComponent"; import ToggleShadComponent from "../../../../components/toggleShadComponent"; import { Button } from "../../../../components/ui/button"; diff --git a/src/frontend/src/CustomNodes/GenericNode/index.tsx b/src/frontend/src/customNodes/genericNode/index.tsx similarity index 99% rename from src/frontend/src/CustomNodes/GenericNode/index.tsx rename to src/frontend/src/customNodes/genericNode/index.tsx index 64d3b4bea..044d8cca4 100644 --- a/src/frontend/src/CustomNodes/GenericNode/index.tsx +++ b/src/frontend/src/customNodes/genericNode/index.tsx @@ -1,9 +1,9 @@ import { cloneDeep } from "lodash"; import { useCallback, useEffect, useMemo, useState } from "react"; import { NodeToolbar, useUpdateNodeInternals } from "reactflow"; -import ShadTooltip from "../../components/ShadTooltipComponent"; import IconComponent from "../../components/genericIconComponent"; import InputComponent from "../../components/inputComponent"; +import ShadTooltip from "../../components/shadTooltipComponent"; import { Button } from "../../components/ui/button"; import Checkmark from "../../components/ui/checkmark"; import Loading from "../../components/ui/loading"; diff --git a/src/frontend/src/modals/IOModal/components/chatView/chatMessage/index.tsx b/src/frontend/src/modals/IOModal/components/chatView/chatMessage/index.tsx index 93a0db3c3..2b0f37240 100644 --- a/src/frontend/src/modals/IOModal/components/chatView/chatMessage/index.tsx +++ b/src/frontend/src/modals/IOModal/components/chatView/chatMessage/index.tsx @@ -6,9 +6,9 @@ import remarkGfm from "remark-gfm"; import remarkMath from "remark-math"; import MaleTechnology from "../../../../../assets/male-technologist.png"; import Robot from "../../../../../assets/robot.png"; -import SanitizedHTMLWrapper from "../../../../../components/SanitizedHTMLWrapper"; import CodeTabsComponent from "../../../../../components/codeTabsComponent"; import IconComponent from "../../../../../components/genericIconComponent"; +import SanitizedHTMLWrapper from "../../../../../components/sanitizedHTMLWrapper"; import useAlertStore from "../../../../../stores/alertStore"; import useFlowStore from "../../../../../stores/flowStore"; import { chatMessagePropsType } from "../../../../../types/components"; diff --git a/src/frontend/src/modals/IOModal/index.tsx b/src/frontend/src/modals/IOModal/index.tsx index 46b934198..f734977d8 100644 --- a/src/frontend/src/modals/IOModal/index.tsx +++ b/src/frontend/src/modals/IOModal/index.tsx @@ -1,7 +1,7 @@ import { useEffect, useState } from "react"; -import AccordionComponent from "../../components/AccordionComponent"; -import ShadTooltip from "../../components/ShadTooltipComponent"; +import AccordionComponent from "../../components/accordionComponent"; import IconComponent from "../../components/genericIconComponent"; +import ShadTooltip from "../../components/shadTooltipComponent"; import { Badge } from "../../components/ui/badge"; import { Button } from "../../components/ui/button"; import { diff --git a/src/frontend/src/modals/ApiModal/index.tsx b/src/frontend/src/modals/apiModal/index.tsx similarity index 100% rename from src/frontend/src/modals/ApiModal/index.tsx rename to src/frontend/src/modals/apiModal/index.tsx diff --git a/src/frontend/src/modals/ConfirmationModal/index.tsx b/src/frontend/src/modals/confirmationModal/index.tsx similarity index 97% rename from src/frontend/src/modals/ConfirmationModal/index.tsx rename to src/frontend/src/modals/confirmationModal/index.tsx index 2c6377a12..9f8efa165 100644 --- a/src/frontend/src/modals/ConfirmationModal/index.tsx +++ b/src/frontend/src/modals/confirmationModal/index.tsx @@ -1,5 +1,5 @@ import React, { useEffect, useState } from "react"; -import ShadTooltip from "../../components/ShadTooltipComponent"; +import ShadTooltip from "../../components/shadTooltipComponent"; import { Button } from "../../components/ui/button"; import { ConfirmationModalType, diff --git a/src/frontend/src/modals/DeleteConfirmationModal/index.tsx b/src/frontend/src/modals/deleteConfirmationModal/index.tsx similarity index 100% rename from src/frontend/src/modals/DeleteConfirmationModal/index.tsx rename to src/frontend/src/modals/deleteConfirmationModal/index.tsx diff --git a/src/frontend/src/modals/EditNodeModal/index.tsx b/src/frontend/src/modals/editNodeModal/index.tsx similarity index 99% rename from src/frontend/src/modals/EditNodeModal/index.tsx rename to src/frontend/src/modals/editNodeModal/index.tsx index 87c72d1df..a97afae09 100644 --- a/src/frontend/src/modals/EditNodeModal/index.tsx +++ b/src/frontend/src/modals/editNodeModal/index.tsx @@ -1,6 +1,5 @@ import { cloneDeep } from "lodash"; import { forwardRef, useEffect, useState } from "react"; -import ShadTooltip from "../../components/ShadTooltipComponent"; import CodeAreaComponent from "../../components/codeAreaComponent"; import DictComponent from "../../components/dictComponent"; import Dropdown from "../../components/dropdownComponent"; @@ -12,6 +11,7 @@ import InputListComponent from "../../components/inputListComponent"; import IntComponent from "../../components/intComponent"; import KeypairListComponent from "../../components/keypairListComponent"; import PromptAreaComponent from "../../components/promptComponent"; +import ShadTooltip from "../../components/shadTooltipComponent"; import TextAreaComponent from "../../components/textAreaComponent"; import ToggleShadComponent from "../../components/toggleShadComponent"; import { Badge } from "../../components/ui/badge"; diff --git a/src/frontend/src/modals/exportModal/index.tsx b/src/frontend/src/modals/exportModal/index.tsx index 9fac4d0a8..9eca267e8 100644 --- a/src/frontend/src/modals/exportModal/index.tsx +++ b/src/frontend/src/modals/exportModal/index.tsx @@ -1,5 +1,5 @@ import { ReactNode, forwardRef, useEffect, useState } from "react"; -import EditFlowSettings from "../../components/EditFlowSettingsComponent"; +import EditFlowSettings from "../../components/editFlowSettingsComponent"; import IconComponent from "../../components/genericIconComponent"; import { Button } from "../../components/ui/button"; import { Checkbox } from "../../components/ui/checkbox"; diff --git a/src/frontend/src/modals/flowSettingsModal/index.tsx b/src/frontend/src/modals/flowSettingsModal/index.tsx index fb880967d..1daeb0fe1 100644 --- a/src/frontend/src/modals/flowSettingsModal/index.tsx +++ b/src/frontend/src/modals/flowSettingsModal/index.tsx @@ -1,5 +1,5 @@ import { useEffect, useState } from "react"; -import EditFlowSettings from "../../components/EditFlowSettingsComponent"; +import EditFlowSettings from "../../components/editFlowSettingsComponent"; import IconComponent from "../../components/genericIconComponent"; import { Button } from "../../components/ui/button"; import { SETTINGS_DIALOG_SUBTITLE } from "../../constants/constants"; diff --git a/src/frontend/src/modals/genericModal/index.tsx b/src/frontend/src/modals/genericModal/index.tsx index e00462218..02000df4d 100644 --- a/src/frontend/src/modals/genericModal/index.tsx +++ b/src/frontend/src/modals/genericModal/index.tsx @@ -1,7 +1,7 @@ import { useEffect, useRef, useState } from "react"; -import SanitizedHTMLWrapper from "../../components/SanitizedHTMLWrapper"; -import ShadTooltip from "../../components/ShadTooltipComponent"; import IconComponent from "../../components/genericIconComponent"; +import SanitizedHTMLWrapper from "../../components/sanitizedHTMLWrapper"; +import ShadTooltip from "../../components/shadTooltipComponent"; import { Badge } from "../../components/ui/badge"; import { Button } from "../../components/ui/button"; import { Textarea } from "../../components/ui/textarea"; diff --git a/src/frontend/src/modals/NewFlowModal/components/NewFlowCardComponent/index.tsx b/src/frontend/src/modals/newFlowModal/components/NewFlowCardComponent/index.tsx similarity index 100% rename from src/frontend/src/modals/NewFlowModal/components/NewFlowCardComponent/index.tsx rename to src/frontend/src/modals/newFlowModal/components/NewFlowCardComponent/index.tsx diff --git a/src/frontend/src/modals/NewFlowModal/components/undrawCards/index.tsx b/src/frontend/src/modals/newFlowModal/components/undrawCards/index.tsx similarity index 100% rename from src/frontend/src/modals/NewFlowModal/components/undrawCards/index.tsx rename to src/frontend/src/modals/newFlowModal/components/undrawCards/index.tsx diff --git a/src/frontend/src/modals/NewFlowModal/index.tsx b/src/frontend/src/modals/newFlowModal/index.tsx similarity index 100% rename from src/frontend/src/modals/NewFlowModal/index.tsx rename to src/frontend/src/modals/newFlowModal/index.tsx diff --git a/src/frontend/src/modals/NodeModal/components/ModalField/index.tsx b/src/frontend/src/modals/nodeModal/components/modalField/index.tsx similarity index 100% rename from src/frontend/src/modals/NodeModal/components/ModalField/index.tsx rename to src/frontend/src/modals/nodeModal/components/modalField/index.tsx diff --git a/src/frontend/src/modals/SecretKeyModal/index.tsx b/src/frontend/src/modals/secretKeyModal/index.tsx similarity index 100% rename from src/frontend/src/modals/SecretKeyModal/index.tsx rename to src/frontend/src/modals/secretKeyModal/index.tsx diff --git a/src/frontend/src/modals/shareModal/index.tsx b/src/frontend/src/modals/shareModal/index.tsx index c0a2a702b..75c3c1382 100644 --- a/src/frontend/src/modals/shareModal/index.tsx +++ b/src/frontend/src/modals/shareModal/index.tsx @@ -1,6 +1,6 @@ import { Loader2 } from "lucide-react"; import { ReactNode, useEffect, useMemo, useState } from "react"; -import EditFlowSettings from "../../components/EditFlowSettingsComponent"; +import EditFlowSettings from "../../components/editFlowSettingsComponent"; import IconComponent from "../../components/genericIconComponent"; import { TagsSelector } from "../../components/tagsSelectorComponent"; import { Button } from "../../components/ui/button"; @@ -23,8 +23,8 @@ import { removeGlobalVariableFromComponents, } from "../../utils/reactflowUtils"; import { getTagsIds } from "../../utils/storeUtils"; -import ConfirmationModal from "../ConfirmationModal"; import BaseModal from "../baseModal"; +import ConfirmationModal from "../confirmationModal"; import ExportModal from "../exportModal"; export default function ShareModal({ @@ -207,8 +207,9 @@ export default function ShareModal({ {children ? children : <>} Share
- {!is_component && + {!is_component && ( + + + + )} + {is_component && ( - - } - {is_component && - - } + )}