File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- export const TEAM_NAME_REGEX = / ^ [ A - Z a - z 가 - 힣 ] { 4 , 10 } $ / ;
1+ export const TEAM_NAME_REGEX = / ^ [ A - Z a - z 가 - 힣 \s ] { 4 , 10 } $ / ;
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ const SettingMember = () => {
3535 . slice ( 1 )
3636 . map ( ( member , index ) => (
3737 < MemberItem
38+ className = { `py-[1.2rem]` }
3839 key = { index }
3940 profileImageUrl = { member . profileImageUrl }
4041 name = { member . name }
Original file line number Diff line number Diff line change @@ -41,14 +41,22 @@ const TeamCreateModal = (props: TeamCreateModalProps) => {
4141 < h2 className = { `text-gray-600 font-title-sub-b` } > 팀원 초대</ h2 >
4242 < img src = { IcX } alt = { '닫기' } onClick = { props . onClick } />
4343 </ div >
44- < input
45- className = { `text-start w-full border border-gray-300 px-[1.2rem] py-[0.7rem]
46- font-body-r text-gray-400 placeholder:text-gray-400 rounded-[0.6rem] focus:outline-none` }
47- type = { 'text' }
48- placeholder = { '팀 이름을 입력하세요' }
49- value = { teamName }
50- onChange = { ( e ) => setTeamName ( e . target . value ) }
51- />
44+ < div className = { `flex flex-col` } >
45+ < input
46+ className = { `text-start w-full border px-[1.2rem] py-[0.7rem]
47+ font-body-r text-gray-400 placeholder:text-gray-400 rounded-[0.6rem] focus:outline-none
48+ ${ ! isNameValid && teamName ? 'border-error-400' : 'border-gray-300' } ` }
49+ type = { 'text' }
50+ placeholder = { '팀 이름을 입력하세요' }
51+ value = { teamName }
52+ onChange = { ( e ) => setTeamName ( e . target . value ) }
53+ />
54+ { ! isNameValid && teamName && (
55+ < span className = "text-error-400 font-xsmall-r mt-[0.6rem]" >
56+ 팀 이름은 4~10자, 한글/영문/띄어쓰기로 입력해주세요.
57+ </ span >
58+ ) }
59+ </ div >
5260 < p className = { `font-body-r mt-[0.8rem]` } > 팀원 추가</ p >
5361 </ section >
5462
You can’t perform that action at this time.
0 commit comments