refactor: input component (#2999)

This commit is contained in:
Alex Yang authored and GitHub committed 2023-07-04 06:52:46 +00:00
1 parent 8d2ffe3936
commit e871ffcba0
6 files changed
+30 -28

No files matched your search

+1 -1
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);