Skip to content

Commit

Permalink
refactor: 그룹 생성 제목 글자수 수정 및 테스트 아이디 넣기
Browse files Browse the repository at this point in the history
  • Loading branch information
msm0748 committed Dec 5, 2023
1 parent 50ee983 commit e3ae54f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/components/LoginModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export default function LoginModal({ open, onClose }: ModalProps) {
id="email"
type="email"
autoComplete="email"
defaultValue={'[email protected]'}
required
className="px-3 block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6"
{...register('email', {
Expand All @@ -87,6 +88,7 @@ export default function LoginModal({ open, onClose }: ModalProps) {
id="password"
type="password"
autoComplete="current-password"
defaultValue={'1234'}
required
className="px-3 block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6"
{...register('password', {
Expand Down
4 changes: 2 additions & 2 deletions src/pages/CreateGroupPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@ export default function CreateGroupPage() {
type="text"
{...register('name', {
required: '스터디 이름을 작성해주세요!',
maxLength: { value: 10, message: '스터디 이름은 최대 10글자입니다!' },
maxLength: { value: 20, message: '스터디 이름은 최대 20글자입니다!' },
})}
className="w-full border rounded-md py-1 pl-3"
placeholder="스터디 이름을 입력하세요. (최대 10글자)"
placeholder="스터디 이름을 입력하세요. (최대 20글자)"
/>
</div>
<ErrorMessage
Expand Down

0 comments on commit e3ae54f

Please sign in to comment.