diff --git a/src/components/Common/Select.tsx b/src/components/Common/Select.tsx index 953a70a3..3855ef28 100644 --- a/src/components/Common/Select.tsx +++ b/src/components/Common/Select.tsx @@ -60,9 +60,9 @@ const CustomSelect: React.FC = ({ }; return ( -
+
{centerText ? : null} @@ -76,7 +76,7 @@ const CustomSelect: React.FC = ({
{isOpen && (
= ({ return ( -
+

Flashcard Review Mode

-
+
{ return { label: file, value: file }; @@ -69,6 +69,7 @@ const FlashcardReviewModal: React.FC = ({ setCurrentSelectedFlashcard(0); setSelectedFlashcardFile(value); }} + // className="w-full" />
diff --git a/src/components/Settings/ChunkSizeSettings.tsx b/src/components/Settings/ChunkSizeSettings.tsx index dae6751f..d43383ab 100644 --- a/src/components/Settings/ChunkSizeSettings.tsx +++ b/src/components/Settings/ChunkSizeSettings.tsx @@ -43,14 +43,16 @@ const ChunkSizeSettings: React.FC = ({ children }) => {
{children} {chunkSize && ( - ({ - label: num.toString(), - value: num.toString(), - }))} - selectedValue={chunkSize?.toString()} - onChange={handleChangeOnChunkSizeSelect} - /> +
+ ({ + label: num.toString(), + value: num.toString(), + }))} + selectedValue={chunkSize?.toString()} + onChange={handleChangeOnChunkSizeSelect} + /> +
)}
); diff --git a/src/components/Settings/EmbeddingSettings/InitialEmbeddingSettings.tsx b/src/components/Settings/EmbeddingSettings/InitialEmbeddingSettings.tsx index b3a927ef..3047db30 100644 --- a/src/components/Settings/EmbeddingSettings/InitialEmbeddingSettings.tsx +++ b/src/components/Settings/EmbeddingSettings/InitialEmbeddingSettings.tsx @@ -94,17 +94,19 @@ const InitialEmbeddingModelSettings: React.FC< value={selectedModel} onChange={handleChangeOnModelSelect} /> */} - { - return { label: model, value: model }; - })} - selectedValue={selectedModel} - onChange={handleChangeOnModelSelect} - addButton={{ - label: "Attach a Custom Embedding Model", - onClick: () => setShowNewEmbeddingModelModal(true), - }} - /> +
+ { + return { label: model, value: model }; + })} + selectedValue={selectedModel} + onChange={handleChangeOnModelSelect} + addButton={{ + label: "Attach a Custom Embedding Model", + onClick: () => setShowNewEmbeddingModelModal(true), + }} + /> +
{ diff --git a/src/components/Settings/InitialSettingsSinglePage.tsx b/src/components/Settings/InitialSettingsSinglePage.tsx index 8b57c4cd..28caa325 100644 --- a/src/components/Settings/InitialSettingsSinglePage.tsx +++ b/src/components/Settings/InitialSettingsSinglePage.tsx @@ -33,7 +33,7 @@ const InitialSetupSinglePage: React.FC = ({ onClose={() => console.log("Not allowing a close for now")} hideCloseButton={true} > -
+

Welcome to the Reor Project. diff --git a/src/components/Settings/LLMSettings/DefaultLLMSelector.tsx b/src/components/Settings/LLMSettings/DefaultLLMSelector.tsx index 4d2fc6e4..4ba8b467 100644 --- a/src/components/Settings/LLMSettings/DefaultLLMSelector.tsx +++ b/src/components/Settings/LLMSettings/DefaultLLMSelector.tsx @@ -18,26 +18,6 @@ const DefaultLLMSelector: React.FC = ({ defaultLLM, setDefaultLLM, }) => { - // const [llmConfigs, setLLMConfigs] = useState([]); - // const [defaultModel, setDefaultModel] = useState(""); - - // useEffect(() => { - // const fetchAndUpdateModelConfigs = async () => { - // try { - // const fetchedLLMConfigs = await window.llm.getLLMConfigs(); - // setLLMConfigs(fetchedLLMConfigs); - // const defaultModelName = await window.llm.getDefaultLLMName(); - // setDefaultModel(defaultModelName); - // onModelChange(defaultModelName); - // } catch (error) { - // console.error("Failed to fetch model configurations:", error); - // onModelError("Failed to fetch model configurations"); - // } - // }; - - // fetchAndUpdateModelConfigs(); - // }, []); - const handleDefaultModelChange = (selectedModel: string) => { setDefaultLLM(selectedModel); window.llm.setDefaultLLM(selectedModel); diff --git a/src/components/Settings/LLMSettings/LLMSettingsContent.tsx b/src/components/Settings/LLMSettings/LLMSettingsContent.tsx index effd7ecb..f83086ce 100644 --- a/src/components/Settings/LLMSettings/LLMSettingsContent.tsx +++ b/src/components/Settings/LLMSettings/LLMSettingsContent.tsx @@ -52,7 +52,7 @@ const LLMSettingsContent: React.FC = ({ {llmConfigs.length > 0 && (

Default LLM

-
+