- Model Settings
+
{settingsComponent}
);
From 14dfa123ef987a03cda318ca45c1e1f8128c573d Mon Sep 17 00:00:00 2001
From: Ryan Holinshead <>
Date: Wed, 27 Dec 2023 11:32:58 -0500
Subject: [PATCH 3/3] [editor] Add MantineProvider to Unblock Styling Work
---
.../src/aiconfig/editor/client/src/Editor.tsx | 28 ++++++++++---------
.../src/components/ParametersRenderer.tsx | 3 --
2 files changed, 15 insertions(+), 16 deletions(-)
diff --git a/python/src/aiconfig/editor/client/src/Editor.tsx b/python/src/aiconfig/editor/client/src/Editor.tsx
index dbfb1a105..714516e5c 100644
--- a/python/src/aiconfig/editor/client/src/Editor.tsx
+++ b/python/src/aiconfig/editor/client/src/Editor.tsx
@@ -1,6 +1,6 @@
import EditorContainer from "./components/EditorContainer";
import { ClientAIConfig } from "./shared/types";
-import { Flex, Loader } from "@mantine/core";
+import { Flex, Loader, MantineProvider } from "@mantine/core";
import { AIConfig, Prompt } from "aiconfig";
import { useCallback, useEffect, useState } from "react";
import { ufetch } from "ufetch";
@@ -51,18 +51,20 @@ export default function Editor() {
return (
- {!aiconfig ? (
-
-
-
- ) : (
-
- )}
+
+ {!aiconfig ? (
+
+
+
+ ) : (
+
+ )}
+
);
}
diff --git a/python/src/aiconfig/editor/client/src/components/ParametersRenderer.tsx b/python/src/aiconfig/editor/client/src/components/ParametersRenderer.tsx
index 396ba11fc..57d98090c 100644
--- a/python/src/aiconfig/editor/client/src/components/ParametersRenderer.tsx
+++ b/python/src/aiconfig/editor/client/src/components/ParametersRenderer.tsx
@@ -193,9 +193,6 @@ export default memo(function ParametersRenderer(props: {
});
}, [onUpdateParameters]);
- // TODO: saqadri - add MantineProvider wrapper inside EditorContainer in order for this to pick up context
- const theme = useMantineTheme();
-
return (