diff --git a/frontend/src/preferences/APIKeyModal.tsx b/frontend/src/preferences/APIKeyModal.tsx
index d068aa42..e8f9f224 100644
--- a/frontend/src/preferences/APIKeyModal.tsx
+++ b/frontend/src/preferences/APIKeyModal.tsx
@@ -3,6 +3,7 @@ import { useDispatch, useSelector } from 'react-redux';
import { ActiveState } from '../models/misc';
import { selectApiKey, setApiKey } from './preferenceSlice';
import { useOutsideAlerter } from './../hooks';
+import Modal from '../Modal';
export default function APIKeyModal({
modalState,
@@ -49,53 +50,35 @@ export default function APIKeyModal({
}
return (
-
-
-
OpenAI API Key
-
- Before you can start using DocsGPT we need you to provide an API key
- for llm. Currently, we support only OpenAI but soon many more. You can
- find it here.
-
- setKey(e.target.value)}
- />
-
-
-
- {isCancellable && (
-
- )}
-
- {isError && (
-
- Please enter a valid API key
+ {
+ return (
+
+
OpenAI API Key
+
+ Before you can start using DocsGPT we need you to provide an API
+ key for llm. Currently, we support only OpenAI but soon many more.
+ You can find it here.