Commit 1b35caf7 authored by Kim, Subin's avatar Kim, Subin
Browse files

Login&Signup error Msg margin 추가

parent f31da379
...@@ -33,7 +33,7 @@ const LoginForm = () => { ...@@ -33,7 +33,7 @@ const LoginForm = () => {
placeholder="아이디" placeholder="아이디"
{...formik.getFieldProps('userId')} /> {...formik.getFieldProps('userId')} />
{formik.touched.userId && formik.errors.userId ? ( {formik.touched.userId && formik.errors.userId ? (
<div className="text-danger " style={{ fontSize: "10px" }}>{formik.errors.userId}</div> <div className="text-danger mt-1" style={{ fontSize: "10px" }}>{formik.errors.userId}</div>
) : null} ) : null}
</div> </div>
<div className="mb-3"> <div className="mb-3">
...@@ -43,7 +43,7 @@ const LoginForm = () => { ...@@ -43,7 +43,7 @@ const LoginForm = () => {
placeholder="비밀번호" placeholder="비밀번호"
{...formik.getFieldProps('password')} /> {...formik.getFieldProps('password')} />
{formik.touched.password && formik.errors.password ? ( {formik.touched.password && formik.errors.password ? (
<div className="text-danger" style={{ fontSize: "10px" }}>{formik.errors.password}</div> <div className="text-danger mt-1" style={{ fontSize: "10px" }}>{formik.errors.password}</div>
) : null} ) : null}
</div> </div>
<div className="d-grid gap-2 mt-5"> <div className="d-grid gap-2 mt-5">
......
...@@ -51,7 +51,7 @@ const SignupForm = () => { ...@@ -51,7 +51,7 @@ const SignupForm = () => {
style={{ boxShadow: "none", borderRadius: "0" }} style={{ boxShadow: "none", borderRadius: "0" }}
{...formik.getFieldProps('userId')} /> {...formik.getFieldProps('userId')} />
{formik.touched.userId && formik.errors.userId ? ( {formik.touched.userId && formik.errors.userId ? (
<div className="text-danger" style={{ fontSize: "10px" }}>{formik.errors.userId}</div> <div className="text-danger mt-1" style={{ fontSize: "10px" }}>{formik.errors.userId}</div>
) : null} ) : null}
</div> </div>
</div> </div>
...@@ -63,7 +63,7 @@ const SignupForm = () => { ...@@ -63,7 +63,7 @@ const SignupForm = () => {
style={{ boxShadow: "none", borderRadius: "0" }} style={{ boxShadow: "none", borderRadius: "0" }}
{...formik.getFieldProps('password')} /> {...formik.getFieldProps('password')} />
{formik.touched.password && formik.errors.password ? ( {formik.touched.password && formik.errors.password ? (
<div className="text-danger" style={{ fontSize: "10px" }}>{formik.errors.password}</div> <div className="text-danger mt-1" style={{ fontSize: "10px" }}>{formik.errors.password}</div>
) : null} ) : null}
</div> </div>
</div> </div>
...@@ -75,7 +75,7 @@ const SignupForm = () => { ...@@ -75,7 +75,7 @@ const SignupForm = () => {
style={{ boxShadow: "none", borderRadius: "0" }} style={{ boxShadow: "none", borderRadius: "0" }}
{...formik.getFieldProps('repassword')} /> {...formik.getFieldProps('repassword')} />
{formik.touched.repassword && formik.errors.repassword ? ( {formik.touched.repassword && formik.errors.repassword ? (
<div className="text-danger" style={{ fontSize: "10px" }}>{formik.errors.repassword}</div> <div className="text-danger mt-1" style={{ fontSize: "10px" }}>{formik.errors.repassword}</div>
) : null} ) : null}
</div> </div>
</div> </div>
...@@ -87,7 +87,7 @@ const SignupForm = () => { ...@@ -87,7 +87,7 @@ const SignupForm = () => {
style={{ boxShadow: "none", borderRadius: "0" }} style={{ boxShadow: "none", borderRadius: "0" }}
{...formik.getFieldProps('userName')} /> {...formik.getFieldProps('userName')} />
{formik.touched.userName && formik.errors.userName ? ( {formik.touched.userName && formik.errors.userName ? (
<div className="text-danger" style={{ fontSize: "10px" }}>{formik.errors.userName}</div> <div className="text-danger mt-1" style={{ fontSize: "10px" }}>{formik.errors.userName}</div>
) : null} ) : null}
</div> </div>
</div> </div>
...@@ -99,7 +99,7 @@ const SignupForm = () => { ...@@ -99,7 +99,7 @@ const SignupForm = () => {
style={{ boxShadow: "none", borderRadius: "0" }} style={{ boxShadow: "none", borderRadius: "0" }}
{...formik.getFieldProps('userStudNum')} /> {...formik.getFieldProps('userStudNum')} />
{formik.touched.userStudNum && formik.errors.userStudNum ? ( {formik.touched.userStudNum && formik.errors.userStudNum ? (
<div className="text-danger" style={{ fontSize: "10px" }}>{formik.errors.userStudNum}</div> <div className="text-danger mt-1" style={{ fontSize: "10px" }}>{formik.errors.userStudNum}</div>
) : null} ) : null}
</div> </div>
</div> </div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment