mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-30 03:00:41 -04:00
refactor(frontend): update import paths for CredentialsGroupedView
### Summary This commit refactors the import paths for the `CredentialsGroupedView` component across multiple files to ensure consistency and correct referencing. ### Key Changes - Updated import statements in `RunInputDialog.tsx` and `ModalRunSection.tsx` to point to the correct file path for `CredentialsGroupedView`. - Removed the now obsolete index file for `CredentialsGroupedView`. ### Benefits - **Improved Code Clarity**: Ensures that the component is imported from the correct location, reducing potential errors. - **Streamlined Imports**: Consolidates the import structure for better maintainability. ### Testing - Verified that the components render correctly with the updated import paths and that no functionality was broken by these changes.
This commit is contained in:
@@ -10,7 +10,7 @@ import { useRunInputDialog } from "./useRunInputDialog";
|
||||
import { CronSchedulerDialog } from "../CronSchedulerDialog/CronSchedulerDialog";
|
||||
import { useTutorialStore } from "@/app/(platform)/build/stores/tutorialStore";
|
||||
import { useEffect } from "react";
|
||||
import { CredentialsGroupedView } from "@/components/contextual/CredentialsInput/components/CredentialsGroupedView";
|
||||
import { CredentialsGroupedView } from "@/components/contextual/CredentialsInput/components/CredentialsGroupedView/CredentialsGroupedView";
|
||||
|
||||
export const RunInputDialog = ({
|
||||
isOpen,
|
||||
|
||||
@@ -11,7 +11,7 @@ import { useCallback, useMemo, useState } from "react";
|
||||
import { useNodeStore } from "@/app/(platform)/build/stores/nodeStore";
|
||||
import { useToast } from "@/components/molecules/Toast/use-toast";
|
||||
import { useReactFlow } from "@xyflow/react";
|
||||
import { CredentialField } from "@/components/contextual/CredentialsInput/components/CredentialsGroupedView";
|
||||
import type { CredentialField } from "@/components/contextual/CredentialsInput/components/CredentialsGroupedView/helpers";
|
||||
|
||||
export const useRunInputDialog = ({
|
||||
setIsOpen,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Input } from "@/components/atoms/Input/Input";
|
||||
import { CredentialsGroupedView } from "@/components/contextual/CredentialsInput/components/CredentialsGroupedView";
|
||||
import { CredentialsGroupedView } from "@/components/contextual/CredentialsInput/components/CredentialsGroupedView/CredentialsGroupedView";
|
||||
import { InformationTooltip } from "@/components/molecules/InformationTooltip/InformationTooltip";
|
||||
import { useMemo } from "react";
|
||||
import { RunAgentInputs } from "../../../RunAgentInputs/RunAgentInputs";
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
export { CredentialsGroupedView } from "./CredentialsGroupedView";
|
||||
export type { CredentialField } from "./helpers";
|
||||
Reference in New Issue
Block a user