diff --git a/frontend/src/About.tsx b/frontend/src/About.tsx index ddf6d8eb..ca8ddd87 100644 --- a/frontend/src/About.tsx +++ b/frontend/src/About.tsx @@ -4,7 +4,7 @@ export default function About() { return ( //Parent div for all content shown through App.tsx routing needs to have this styling. Might change when state management is updated. -
+

About DocsGPT 🦖

diff --git a/frontend/src/preferences/SelectDocsModal.tsx b/frontend/src/preferences/SelectDocsModal.tsx index 47d63ab0..26bd7f35 100644 --- a/frontend/src/preferences/SelectDocsModal.tsx +++ b/frontend/src/preferences/SelectDocsModal.tsx @@ -1,7 +1,7 @@ import { useEffect, useState } from 'react'; import { useDispatch } from 'react-redux'; import { ActiveState, Doc } from '../models/misc'; -import { setSelectedDocs, selectSelectedDocs } from './preferenceSlice'; +import { setSelectedDocs } from './preferenceSlice'; import { getDocs } from '../api/docs'; export default function APIKeyModal({ @@ -109,7 +109,7 @@ export default function APIKeyModal({ className="ml-auto h-10 w-20 rounded-lg bg-violet-800 text-white transition-all hover:bg-violet-700" > Save - {' '} + {isError && (

Please select source documentation. diff --git a/frontend/src/preferences/preferenceSlice.ts b/frontend/src/preferences/preferenceSlice.ts index 0323a5b8..0ee3b8e5 100644 --- a/frontend/src/preferences/preferenceSlice.ts +++ b/frontend/src/preferences/preferenceSlice.ts @@ -33,7 +33,5 @@ type RootState = ReturnType; export const selectApiKey = (state: RootState) => state.preference.apiKey; export const selectApiKeyStatus = (state: RootState) => !!state.preference.apiKey; -export const selectSelectedDocs = (state: RootState) => - state.preference.selectedDocs; export const selectSelectedDocsStatus = (state: RootState) => !!state.preference.selectedDocs;