Skip to content

Commit 530162f

Browse files
committed
refactor: 슬로건 글자수 props 제거
1 parent 6e9c157 commit 530162f

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/entities/slogan/ui/SloganInput/index.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@ import CountLength from "../CountLength";
44

55
type SloganInputProps = {
66
value: string;
7-
length: number;
87
onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
98
};
109

11-
const SloganInput = ({ value, length, onChange }: SloganInputProps) => {
10+
const SloganInput = ({ value, onChange }: SloganInputProps) => {
1211
return (
13-
<CountLength length={length}>
12+
<CountLength length={value.length}>
1413
<Input
1514
type="text"
1615
value={value}

0 commit comments

Comments
 (0)