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
6eb0e6a7
Commit
6eb0e6a7
authored
Aug 02, 2021
by
seoyeon
Browse files
12
parent
fa6f60ff
Changes
2
Hide whitespace changes
Inline
Side-by-side
client/src/components/Home/RoomSingle.js
View file @
6eb0e6a7
...
...
@@ -14,6 +14,7 @@ const RoomSingle = () => {
const
[
room
,
setRoom
]
=
useState
(
INIT_ROOM
)
const
[
error
,
setError
]
=
useState
(
''
)
const
channelId
=
1
const
roomId
=
"
1234567abc
"
async
function
getJoinRoom
(
Id
)
{
try
{
...
...
client/src/components/SignUp.js
View file @
6eb0e6a7
import
axios
from
'
axios
'
import
{
useEffect
,
useState
}
from
'
react
'
import
{
Link
}
from
'
react-router-dom
'
import
{
Link
,
Redirect
}
from
'
react-router-dom
'
import
userApi
from
'
../apis/user.api
'
import
catchErrors
from
'
../context/catchError
'
...
...
@@ -52,12 +53,15 @@ const Signup = () => {
alert
(
'
비밀번호가 일치하지 않습니다.
'
)
return
false
}
else
{
alert
(
'
회원가입 되었습니다.
'
)
window
.
location
.
href
=
'
/
'
return
true
}
}
if
(
success
)
{
alert
(
'
회원가입 되었습니다.
'
)
window
.
location
.
href
=
'
/
'
}
const
{
name
,
id
,
password
,
checkpw
,
phone
}
=
user
return
(
<
div
className
=
"
container
"
>
...
...
@@ -132,6 +136,7 @@ const Signup = () => {
onChange
=
{
handleChange
}
/
>
<
/div
>
{
/* {console.log(disabled)} */
}
<
div
className
=
"
mt-3 d-flex justify-content-center
"
>
<
button
type
=
"
submit
"
...
...
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