Skip to content

Commit

Permalink
💄 chore: use password input for API secret field in settings
Browse files Browse the repository at this point in the history
  • Loading branch information
YangHanlin committed Apr 29, 2024
1 parent a88c466 commit 59b01a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/features/Settings.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ActionIcon, Alert, Icon, Input, Modal } from '@lobehub/ui';
import { Button, Typography } from 'antd';
import { ActionIcon, Alert, Icon, Modal } from '@lobehub/ui';
import { Button, Input, Typography } from 'antd';

Check warning on line 2 in src/features/Settings.tsx

View check run for this annotation

Codecov / codecov/patch

src/features/Settings.tsx#L2

Added line #L2 was not covered by tests
import isEqual from 'fast-deep-equal';
import { LucideSettings, Save } from 'lucide-react';
import Link from 'next/link';
Expand Down Expand Up @@ -82,7 +82,7 @@ const Settings = memo(() => {
value={proxyURL}
/>
<div>{t('settings.MidjourneyAPIProxy.apiSecret.title')}</div>
<Input
<Input.Password
onChange={(e) => {
updateSettings({ MIDJOURNEY_PROXY_API_SECRET: e.target.value });
}}
Expand Down

0 comments on commit 59b01a6

Please sign in to comment.