Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
students
bora-it
Commits
9e5bf331
Commit
9e5bf331
authored
Jul 07, 2021
by
이재연
Browse files
ㅁㅁㅁㅁㅁㅁㅁㅁㅁㅁㅁㅁㅁ
parent
f3b106a9
Changes
2
Show whitespace changes
Inline
Side-by-side
client/src/components/Profile/InfoUpdate.js
View file @
9e5bf331
import
{
Link
}
from
"
react-router-dom
"
;
import
React
,{
useState
}
from
"
react
"
;
const
InfoUpdate
=
()
=>
{
// const INIT_ACCOUNT={
// name:"",
// }
// const [account, setAccount] = useState(INIT_ACCOUNT)
// const handleChange = (e)=>{
// const {name, value, files}=e.target
// if(files){
// setAccount({...account,[name]:files})
// console.log('aaaaaaa')
// } else{
// setAccount({...account, [name]:value})
// }
// }
function
inputfile
(){
console
.
log
(
'
aa
'
)
}
const
id
=
1
;
const
number
=
1234
;
return
(
...
...
@@ -45,8 +58,10 @@ const InfoUpdate = () => {
/
>
<
/div
>
<
div
className
=
"
mt-2 d-flex justify-content-end
"
>
<
label
for
=
'
inputfile
'
style
=
{{
fontSize
:
"
13px
"
,
fontWeight
:
"
bold
"
}}
>
사진
선택
<
/label
>
<
input
type
=
"
file
"
id
=
'
inputfile
'
style
=
{{
display
:
'
none
'
}}
/
>
<
label
for
=
'
inputfile
'
// onChange={handleChange}
style
=
{{
fontSize
:
"
13px
"
,
fontWeight
:
"
bold
"
}}
>
사진
선택
<
/label
>
<
input
type
=
"
file
"
accept
=
'
image/*
'
id
=
'
inputfile
'
style
=
{{
display
:
'
none
'
}}
/
>
<
/div
>
<
div
className
=
"
col d-flex justify-content-center
"
>
<
input
...
...
client/src/components/SignUp.js
View file @
9e5bf331
...
...
@@ -85,6 +85,7 @@ const Signup = () => {
type
=
"
text
"
name
=
"
idNumber1
"
placeholder
=
"
●●●●●●
"
maxLength
=
'
6
'
value
=
{
idNumber1
}
onChange
=
{
handleChange
}
/
>
...
...
@@ -149,7 +150,7 @@ const Signup = () => {
id
=
"
phone
"
type
=
"
text
"
name
=
"
phone
"
placeholder
=
"
숫자만
입력하세요
"
placeholder
=
"
'-'을 제외하고
입력하세요
"
value
=
{
phone
}
onChange
=
{
handleChange
}
/
>
...
...
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