refactor: input component (#2999)

This commit is contained in:
Alex Yang
2023-07-04 14:52:46 +08:00
committed by GitHub
parent 8d2ffe3936
commit e871ffcba0
6 changed files with 30 additions and 28 deletions

View File

@@ -12,7 +12,7 @@ export const DebugContent: PluginUIAdapter['debugContent'] = () => {
<div>
<span>OpenAI API Key:</span>
<Input
value={key ?? ''}
defaultValue={key ?? undefined}
onChange={useCallback(
(newValue: string) => {
setKey(newValue);