Skip to content

Commit c90dd30

Browse files
committed
refactor: TextField 상수 분리 및 포맷 정리
1 parent 023e7cf commit c90dd30

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/shared/ui/TextField/TextField.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ export const TextField = ({
4343
const isChar = type === 'char';
4444
const isPrice = type === 'price';
4545

46-
const maxLen = isChar ? CHAR_MAX_LENGTH : (maxLength ?? (isTextarea ? TEXTAREA_MAX_LENGTH : undefined));
46+
const maxLen = isChar
47+
? CHAR_MAX_LENGTH
48+
: (maxLength ?? (isTextarea ? TEXTAREA_MAX_LENGTH : undefined));
4749
const normalizedValue = isPrice ? rawValue.replace(/\D/g, '') : rawValue;
4850

4951
const displayValue = useMemo(() => {

0 commit comments

Comments
 (0)