chore: migrated to using custom Input component to address redundant twClasses

This commit is contained in:
utin-francis-peter
2024-07-03 12:34:13 +01:00
parent 0a533b64e1
commit b21230c4d6
6 changed files with 87 additions and 38 deletions

View File

@@ -10,6 +10,7 @@ import { selectSourceDocs } from '../preferences/preferenceSlice';
import Exit from '../assets/exit.svg';
import Trash from '../assets/trash.svg';
import { useTranslation } from 'react-i18next';
import Input from '../components/Input';
const apiHost = import.meta.env.VITE_API_HOST || 'https://docsapi.arc53.com';
const embeddingsName =
import.meta.env.VITE_EMBEDDINGS_NAME ||
@@ -237,12 +238,13 @@ const CreateAPIKeyModal: React.FC<CreateAPIKeyModalProps> = ({
<span className="absolute left-2 -top-2 bg-white px-2 text-xs text-gray-4000 dark:bg-outer-space dark:text-silver">
{t('modals.createAPIKey.apiKeyName')}
</span>
<input
<Input
type="text"
className="h-[42px] w-full rounded-md border-2 border-silver px-3 outline-none dark:border-silver/40 dark:bg-transparent dark:text-white"
className="rounded-md"
hasSilverBorder
value={APIKeyName}
onChange={(e) => setAPIKeyName(e.target.value)}
/>
></Input>
</div>
<div className="my-4">
<Dropdown