diff options
| author | kunish <[email protected]> | 2023-02-28 15:49:53 +0800 |
|---|---|---|
| committer | kunish <[email protected]> | 2023-02-28 15:49:53 +0800 |
| commit | 2a421573de1cd0f518f64de7204d8929a96c8124 (patch) | |
| tree | 146f69d48c7fe55b5eea4ce72314ca8fce3f911b /src/components/Input.tsx | |
| parent | ba46bae1df09e3c9f7fd4b39a007176caca8498a (diff) | |
fix: i18n not following system language setting
Diffstat (limited to 'src/components/Input.tsx')
| -rw-r--r-- | src/components/Input.tsx | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/components/Input.tsx b/src/components/Input.tsx index 1f3458b..ade19b2 100644 --- a/src/components/Input.tsx +++ b/src/components/Input.tsx @@ -4,15 +4,7 @@ import s0 from './Input.module.scss'; const { useState, useRef, useEffect, useCallback } = React; -type InputProps = { - value?: string | number; - type?: string; - onChange?: (...args: any[]) => any; - name?: string; - placeholder?: string; -}; - -export default function Input(props: InputProps) { +export default function Input(props: React.InputHTMLAttributes<HTMLInputElement>) { return <input className={s0.input} {...props} />; } |
