feat: wip on ConfigProvider and integration in settings_v2 (#1395)
This commit is contained in:
@@ -2,6 +2,7 @@ import React from 'react';
|
||||
import ReactDOM from 'react-dom/client';
|
||||
import App from './App';
|
||||
import { ModelProvider } from './components/settings/models/ModelContext';
|
||||
import { ConfigProvider } from './components/ConfigContext';
|
||||
import { ErrorBoundary } from './components/ErrorBoundary';
|
||||
import { ActiveKeysProvider } from './components/settings/api_keys/ActiveKeysContext';
|
||||
import { patchConsoleLogging } from './utils';
|
||||
@@ -10,12 +11,14 @@ patchConsoleLogging();
|
||||
|
||||
ReactDOM.createRoot(document.getElementById('root')!).render(
|
||||
<React.StrictMode>
|
||||
<ModelProvider>
|
||||
<ActiveKeysProvider>
|
||||
<ErrorBoundary>
|
||||
<App />
|
||||
</ErrorBoundary>
|
||||
</ActiveKeysProvider>
|
||||
</ModelProvider>
|
||||
<ConfigProvider>
|
||||
<ModelProvider>
|
||||
<ActiveKeysProvider>
|
||||
<ErrorBoundary>
|
||||
<App />
|
||||
</ErrorBoundary>
|
||||
</ActiveKeysProvider>
|
||||
</ModelProvider>
|
||||
</ConfigProvider>
|
||||
</React.StrictMode>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user