Skip to content

Commit

Permalink
fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
SasaGalicDevoteam committed Mar 5, 2024
1 parent 0f2da32 commit e0a8eef
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 7 deletions.
1 change: 0 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<script type="module" src="/src/index.tsx"></script>
<script src="/config.js"></script>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
Expand Down
1 change: 1 addition & 0 deletions src/components/ChatWindow/ChatWindow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { useSettings } from "../../context/SettingsContext";
import { Thread, useThreadContext } from "../../context/ThreadContext";
import PluginSelector from "../PluginSelector/PluginSelector";
import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
import { config } from "../../config";
// Define the MainContentProps interface for the component's props
interface MainContentProps {
thread?: Thread;
Expand Down
1 change: 1 addition & 0 deletions src/components/PluginSelector/PluginSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import OutlinedInput from "@mui/material/OutlinedInput";
import Select from "@mui/material/Select";
import * as React from "react";
import { useAuthContext } from "../../context/AuthContext";
import { config } from "../../config";

const ITEM_HEIGHT = 48;
const ITEM_PADDING_TOP = 8;
Expand Down
12 changes: 6 additions & 6 deletions src/config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const config = (() => {
return {
"VITE_API_BASE_URL": "...",
"VITE_GOOGLE_CLIENT_ID": "...",
};
})();
export const config = (() => {
return {
"VITE_API_BASE_URL": "http://localhost:8080",
"VITE_GOOGLE_CLIENT_ID": "779787791084-sf0tjf22s5cl3odf9sjg6rch0if9c0qq.apps.googleusercontent.com"
};
})();
1 change: 1 addition & 0 deletions src/context/ThreadContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
useState,
} from "react";
import { useAuthContext } from "./AuthContext";
import { config } from "../config";

// Define the thread context
interface ThreadContextProps {
Expand Down
1 change: 1 addition & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import App from "./App";
import { AuthProvider } from "./context/AuthContext";
import { SettingsProvider, useSettings } from "./context/SettingsContext";
import { devoteamDesignTokens } from "./themes/devoteamTheme";
import { config } from "./config";

const Theme = ({ children }: { children: ReactNode[] | ReactNode }) => {
const { darkMode } = useSettings();
Expand Down

0 comments on commit e0a8eef

Please sign in to comment.