Skip to content

Commit

Permalink
Merge pull request #192 from Make-A-Wish-Sopt/feature/191-wish/title-…
Browse files Browse the repository at this point in the history
…limit

[ feat ] 소원 제목 길이 제한 명시
  • Loading branch information
myeongheonhong authored Jan 15, 2024
2 parents 5f4362b + cc40d63 commit 4ad1cd7
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion components/Wishes/WishesForm/WisehsStep2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import styled from 'styled-components';
import WishesStepTitle from '../Common/WishesStepTitle';
import WishesStepBtn from '../Common/WishesStepBtn';
import { ColorSystemType } from '@/types/common/box/boxStyleType';
import InputLength from '@/components/Common/Input/InputLength';

interface WishesStep2Props {
methods: UseFormReturn<WishesDataInputType, any, undefined>;
Expand Down Expand Up @@ -49,7 +50,16 @@ export default function WishesStep2(props: WishesStep2Props) {
<Styled.Container>
<div>
<InputContainer title="소원 링크 제목 작성하기">
<Input placeholder="ex. ㅇㅇ이의 앙큼 벌스데이" register={methods.register('title')} />
<Input
boxType="inputBox--large"
placeholder="ex. ㅇㅇ이의 앙큼 벌스데이"
register={methods.register('title')}
>
<InputLength
inputLength={methods.watch('title').length}
limitLength={LIMIT_TEXT[20]}
/>
</Input>
</InputContainer>

<InputContainer title="선물에 대한 힌트 자유롭게 적어보기">
Expand Down

1 comment on commit 4ad1cd7

@vercel
Copy link

@vercel vercel bot commented on 4ad1cd7 Jan 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.