Skip to content

Commit d238a8e

Browse files
committed
fix: cx로 묶어 주기
1 parent 8fa11c4 commit d238a8e

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/features/post/components/InputField/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { MAX_PRICE } from '@/libs/constants';
22
import * as s from './style.css';
33
import { useState } from 'react';
4+
import { cx } from '@styled-system/css';
45

56
interface InputProps<T extends number | string> {
67
className?: string;
@@ -48,7 +49,7 @@ const InputField = <T extends number | string>({
4849

4950
return (
5051
<input
51-
className={`${s.Container({ isNumber })} ${className} ${s.ContainerWithPlaceholder}`}
52+
className={cx(s.Container({ isNumber }), className, s.ContainerWithPlaceholder)}
5253
value={stringValue}
5354
onChange={handleChange}
5455
onFocus={handleFocus}

src/features/post/components/StepFunnel/Step5/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const Step5 = () => {
6868
setValue={titleSetter}
6969
maxLength={MAX_TITLE}
7070
placeholder="최대 64자까지 입력이 가능해요."
71-
></InputField>
71+
/>
7272
</div>
7373
<div className={c.DetailContent}>
7474
상품 설명을 입력해 주세요

0 commit comments

Comments
 (0)