Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
students
Today KU
Commits
a96957ee
Commit
a96957ee
authored
Nov 05, 2021
by
Kim, Subin
Browse files
form input autoComplete 적용
parent
6a504a36
Changes
2
Hide whitespace changes
Inline
Side-by-side
client/src/components/Form/LoginForm.js
View file @
a96957ee
...
@@ -14,6 +14,7 @@ const LoginForm = () => {
...
@@ -14,6 +14,7 @@ const LoginForm = () => {
if
(
success
)
{
if
(
success
)
{
return
<
Redirect
to
=
"
/home
"
/>
;
return
<
Redirect
to
=
"
/home
"
/>
;
}
}
return
(
return
(
<>
<>
<
Formik
<
Formik
...
@@ -49,7 +50,7 @@ const LoginForm = () => {
...
@@ -49,7 +50,7 @@ const LoginForm = () => {
<
div
className
=
"
mb-3
"
>
<
div
className
=
"
mb-3
"
>
<
input
type
=
"
text
"
name
=
"
userId
"
<
input
type
=
"
text
"
name
=
"
userId
"
className
=
{
`form-control shadow-none rounded-0
${
styles
.
textInput
}
`
}
className
=
{
`form-control shadow-none rounded-0
${
styles
.
textInput
}
`
}
placeholder
=
"
아이디
"
placeholder
=
"
아이디
"
autoComplete
=
"
nope
"
{...
formik
.
getFieldProps
(
'
userId
'
)}
/
>
{...
formik
.
getFieldProps
(
'
userId
'
)}
/
>
{
formik
.
touched
.
userId
&&
formik
.
errors
.
userId
?
(
{
formik
.
touched
.
userId
&&
formik
.
errors
.
userId
?
(
<
div
className
=
"
text-danger mt-1
"
style
=
{{
fontSize
:
"
10px
"
}}
>
{
formik
.
errors
.
userId
}
<
/div
>
<
div
className
=
"
text-danger mt-1
"
style
=
{{
fontSize
:
"
10px
"
}}
>
{
formik
.
errors
.
userId
}
<
/div
>
...
...
client/src/components/Form/SignupForm.js
View file @
a96957ee
...
@@ -69,7 +69,7 @@ const SignupForm = () => {
...
@@ -69,7 +69,7 @@ const SignupForm = () => {
<
label
className
=
"
form-label
"
style
=
{{
width
:
"
100px
"
}}
>
아이디
<
/label
>
<
label
className
=
"
form-label
"
style
=
{{
width
:
"
100px
"
}}
>
아이디
<
/label
>
<
div
className
=
"
flex-col
"
>
<
div
className
=
"
flex-col
"
>
<
input
type
=
"
text
"
name
=
"
userId
"
<
input
type
=
"
text
"
name
=
"
userId
"
className
=
{
`form-control shadow-none rounded-0
${
styles
.
textInput
}
`
}
className
=
{
`form-control shadow-none rounded-0
${
styles
.
textInput
}
`
}
autoComplete
=
"
off
"
{...
formik
.
getFieldProps
(
'
userId
'
)}
/
>
{...
formik
.
getFieldProps
(
'
userId
'
)}
/
>
{
formik
.
touched
.
userId
&&
formik
.
errors
.
userId
?
(
{
formik
.
touched
.
userId
&&
formik
.
errors
.
userId
?
(
<
div
className
=
"
text-danger mt-1
"
style
=
{{
fontSize
:
"
10px
"
}}
>
{
formik
.
errors
.
userId
}
<
/div
>
<
div
className
=
"
text-danger mt-1
"
style
=
{{
fontSize
:
"
10px
"
}}
>
{
formik
.
errors
.
userId
}
<
/div
>
...
@@ -102,7 +102,7 @@ const SignupForm = () => {
...
@@ -102,7 +102,7 @@ const SignupForm = () => {
<
label
className
=
"
form-label
"
style
=
{{
width
:
"
100px
"
}}
>
이름
<
/label
>
<
label
className
=
"
form-label
"
style
=
{{
width
:
"
100px
"
}}
>
이름
<
/label
>
<
div
className
=
"
flex-col
"
>
<
div
className
=
"
flex-col
"
>
<
input
type
=
"
text
"
name
=
"
userName
"
<
input
type
=
"
text
"
name
=
"
userName
"
className
=
{
`form-control shadow-none rounded-0
${
styles
.
textInput
}
`
}
className
=
{
`form-control shadow-none rounded-0
${
styles
.
textInput
}
`
}
autoComplete
=
"
off
"
{...
formik
.
getFieldProps
(
'
userName
'
)}
/
>
{...
formik
.
getFieldProps
(
'
userName
'
)}
/
>
{
formik
.
touched
.
userName
&&
formik
.
errors
.
userName
?
(
{
formik
.
touched
.
userName
&&
formik
.
errors
.
userName
?
(
<
div
className
=
"
text-danger mt-1
"
style
=
{{
fontSize
:
"
10px
"
}}
>
{
formik
.
errors
.
userName
}
<
/div
>
<
div
className
=
"
text-danger mt-1
"
style
=
{{
fontSize
:
"
10px
"
}}
>
{
formik
.
errors
.
userName
}
<
/div
>
...
@@ -113,7 +113,7 @@ const SignupForm = () => {
...
@@ -113,7 +113,7 @@ const SignupForm = () => {
<
label
className
=
"
form-label
"
style
=
{{
width
:
"
100px
"
}}
>
학번
<
/label
>
<
label
className
=
"
form-label
"
style
=
{{
width
:
"
100px
"
}}
>
학번
<
/label
>
<
div
className
=
"
flex-col
"
>
<
div
className
=
"
flex-col
"
>
<
input
type
=
"
text
"
name
=
"
userStudNum
"
<
input
type
=
"
text
"
name
=
"
userStudNum
"
className
=
{
`form-control shadow-none rounded-0
${
styles
.
textInput
}
`
}
className
=
{
`form-control shadow-none rounded-0
${
styles
.
textInput
}
`
}
autoComplete
=
"
off
"
{...
formik
.
getFieldProps
(
'
userStudNum
'
)}
/
>
{...
formik
.
getFieldProps
(
'
userStudNum
'
)}
/
>
{
formik
.
touched
.
userStudNum
&&
formik
.
errors
.
userStudNum
?
(
{
formik
.
touched
.
userStudNum
&&
formik
.
errors
.
userStudNum
?
(
<
div
className
=
"
text-danger mt-1
"
style
=
{{
fontSize
:
"
10px
"
}}
>
{
formik
.
errors
.
userStudNum
}
<
/div
>
<
div
className
=
"
text-danger mt-1
"
style
=
{{
fontSize
:
"
10px
"
}}
>
{
formik
.
errors
.
userStudNum
}
<
/div
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment