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

@@ -219,7 +219,7 @@ export const EditCollection = ({
<Input
data-testid="input-collection-title"
placeholder="Untitled Collection"
value={value.name}
defaultValue={value.name}
onChange={text =>
onChange({
...value,