We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e9c157 commit 530162fCopy full SHA for 530162f
1 file changed
src/entities/slogan/ui/SloganInput/index.tsx
@@ -4,13 +4,12 @@ import CountLength from "../CountLength";
4
5
type SloganInputProps = {
6
value: string;
7
- length: number;
8
onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
9
};
10
11
-const SloganInput = ({ value, length, onChange }: SloganInputProps) => {
+const SloganInput = ({ value, onChange }: SloganInputProps) => {
12
return (
13
- <CountLength length={length}>
+ <CountLength length={value.length}>
14
<Input
15
type="text"
16
value={value}
0 commit comments