chore: setup cspell and fix some typoes (#352)

Co-authored-by: DIYgod <i@diygod.me>
This commit is contained in:
UncleBill
2023-04-16 20:42:00 +01:00
committed by GitHub
co-authored by DIYgod
parent ee08666375
commit d7ca395215
26 changed files with 968 additions and 517 deletions
+2 -2
View File
@@ -66,7 +66,7 @@ export const Editor: React.FC<{
for (let i = 0; i < items.length; i++) {
const file = items[i]?.getAsFile()
if (file) {
await handleDropFile?.(file)
handleDropFile?.(file)
}
}
})()
@@ -79,7 +79,7 @@ export const Editor: React.FC<{
{
;(async () => {
for (let i = 0; i < items.length; i++) {
await handleDropFile?.(items[i])
handleDropFile?.(items[i])
}
})()
}
+3 -3
View File
@@ -13,7 +13,7 @@ type InputProps<TMultiline extends boolean> = {
} & React.ComponentPropsWithRef<TMultiline extends true ? "textarea" : "input">
export const Input = forwardRef(function Input<
TMutliline extends boolean = false,
TMultiline extends boolean = false,
>(
{
label,
@@ -25,8 +25,8 @@ export const Input = forwardRef(function Input<
help,
multiline,
...inputProps
}: InputProps<TMutliline>,
ref: TMutliline extends true
}: InputProps<TMultiline>,
ref: TMultiline extends true
? React.ForwardedRef<HTMLTextAreaElement>
: React.ForwardedRef<HTMLInputElement>,
) {