Spaces:
Paused
Paused
Commit
·
ee41a56
1
Parent(s):
71bb3ba
Update components/Settings/Key.tsx
Browse files
components/Settings/Key.tsx
CHANGED
|
@@ -41,11 +41,10 @@ export const Key: FC<Props> = ({ apiKey, onApiKeyChange }) => {
|
|
| 41 |
<input
|
| 42 |
ref={inputRef}
|
| 43 |
className="ml-2 h-[20px] flex-1 overflow-hidden overflow-ellipsis border-b border-neutral-400 bg-transparent pr-1 text-[12.5px] leading-3 text-left text-white outline-none focus:border-neutral-100"
|
| 44 |
-
type="password"
|
| 45 |
value={newKey}
|
| 46 |
onChange={(e) => setNewKey(e.target.value)}
|
| 47 |
onKeyDown={handleEnterDown}
|
| 48 |
-
placeholder={t('API
|
| 49 |
/>
|
| 50 |
|
| 51 |
<div className="flex w-[40px]">
|
|
@@ -71,7 +70,7 @@ export const Key: FC<Props> = ({ apiKey, onApiKeyChange }) => {
|
|
| 71 |
</div>
|
| 72 |
) : (
|
| 73 |
<SidebarButton
|
| 74 |
-
text={t('
|
| 75 |
icon={<IconKey size={18} />}
|
| 76 |
onClick={() => setIsChanging(true)}
|
| 77 |
/>
|
|
|
|
| 41 |
<input
|
| 42 |
ref={inputRef}
|
| 43 |
className="ml-2 h-[20px] flex-1 overflow-hidden overflow-ellipsis border-b border-neutral-400 bg-transparent pr-1 text-[12.5px] leading-3 text-left text-white outline-none focus:border-neutral-100"
|
|
|
|
| 44 |
value={newKey}
|
| 45 |
onChange={(e) => setNewKey(e.target.value)}
|
| 46 |
onKeyDown={handleEnterDown}
|
| 47 |
+
placeholder={t('API Base Url') || 'Base Url'}
|
| 48 |
/>
|
| 49 |
|
| 50 |
<div className="flex w-[40px]">
|
|
|
|
| 70 |
</div>
|
| 71 |
) : (
|
| 72 |
<SidebarButton
|
| 73 |
+
text={t('API Base Url')}
|
| 74 |
icon={<IconKey size={18} />}
|
| 75 |
onClick={() => setIsChanging(true)}
|
| 76 |
/>
|