added provider back and updated imports in custom node

This commit is contained in:
SwiftyOS 2024-12-09 10:36:59 +01:00
parent 3da5fc2cac
commit 1d81c61b77
2 changed files with 4 additions and 1 deletions

View File

@ -3,6 +3,7 @@
import * as React from "react";
import { ThemeProvider as NextThemesProvider } from "next-themes";
import { ThemeProviderProps } from "next-themes/dist/types";
import { BackendAPIProvider } from "@/lib/autogpt-server-api/context";
import { TooltipProvider } from "@/components/ui/tooltip";
import SupabaseProvider from "@/components/providers/SupabaseProvider";
import CredentialsProvider from "@/components/integrations/credentials-provider";
@ -16,9 +17,11 @@ export function Providers({
return (
<NextThemesProvider {...props}>
<SupabaseProvider initialUser={initialUser}>
<BackendAPIProvider>
<CredentialsProvider>
<TooltipProvider>{children}</TooltipProvider>
</CredentialsProvider>
</BackendAPIProvider>
</SupabaseProvider>
</NextThemesProvider>
);

View File

@ -18,8 +18,8 @@ import {
NodeExecutionResult,
BlockUIType,
BlockCost,
useBackendAPI,
} from "@/lib/autogpt-server-api";
import { useBackendAPI } from "@/lib/autogpt-server-api/context";
import {
beautifyString,
cn,