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
776bd873
Commit
776bd873
authored
Jul 12, 2021
by
우지원
Browse files
수정중
parent
98480063
Changes
2
Show whitespace changes
Inline
Side-by-side
client/src/components/Room/LeftHamburger.js
View file @
776bd873
...
@@ -100,7 +100,7 @@ const LeftHamberger = () => {
...
@@ -100,7 +100,7 @@ const LeftHamberger = () => {
type
=
"
button
"
type
=
"
button
"
className
=
"
m-3 rounded
"
className
=
"
m-3 rounded
"
data
-
bs
-
toggle
=
"
modal
"
data
-
bs
-
toggle
=
"
modal
"
data
-
bs
-
target
=
"
#
ex
itRoom
"
data
-
bs
-
target
=
"
#
inv
it
e
Room
"
style
=
{{
style
=
{{
height
:
"
30px
"
,
height
:
"
30px
"
,
fontWeight
:
"
bold
"
,
fontWeight
:
"
bold
"
,
...
@@ -113,7 +113,7 @@ const LeftHamberger = () => {
...
@@ -113,7 +113,7 @@ const LeftHamberger = () => {
<
/button
>
<
/button
>
<
div
<
div
className
=
"
modal fade
"
className
=
"
modal fade
"
id
=
"
ex
itRoom
"
id
=
"
inv
it
e
Room
"
tabIndex
=
"
-1
"
tabIndex
=
"
-1
"
aria
-
labelledby
=
"
exitRoomLabel
"
aria
-
labelledby
=
"
exitRoomLabel
"
aria
-
hidden
=
"
true
"
aria
-
hidden
=
"
true
"
...
@@ -140,6 +140,17 @@ const LeftHamberger = () => {
...
@@ -140,6 +140,17 @@ const LeftHamberger = () => {
>
>
카카오로
초대
카카오로
초대
<
/button
>
<
/button
>
{
/*
<button
type="submit"
className="col-2 p-1 btn btn-primary"
data-bs-toggle="modal"
data-bs-target="#copyRoomId"
onClick={roomIdCopy}
style={{ width: "120px" }}
>
방 Id 복사
</button> */
}
<
button
<
button
type
=
"
submit
"
type
=
"
submit
"
className
=
"
col-2 p-1 btn btn-primary
"
className
=
"
col-2 p-1 btn btn-primary
"
...
...
client/src/components/Room/RightHamburger.js
View file @
776bd873
import
{
useState
}
from
"
react
"
;
import
ChannelSingle
from
'
./ChannelSingle
'
import
ChannelSingle
from
'
./ChannelSingle
'
const
RightHamberger
=
()
=>
{
const
RightHamberger
=
()
=>
{
function
copyInput
()
{
const
[
admin
,
setAdmin
]
=
useState
(
'
true
'
)
const
t
=
document
.
querySelector
(
'
#roomId
'
).
innerText
;
console
.
log
(
t
)
navigator
.
clipboard
.
writeText
(
t
);
document
.
execCommand
(
'
copy
'
);
}
return
(
return
(
<
div
>
<
div
>
<
div
>
<
div
>
...
@@ -75,6 +69,20 @@ const RightHamberger = () => {
...
@@ -75,6 +69,20 @@ const RightHamberger = () => {
>
>
퇴장
퇴장
<
/button
>
<
/button
>
{
admin
?
<
button
type
=
"
button
"
className
=
"
m-3 rounded
"
style
=
{{
height
:
'
30px
'
,
fontWeight
:
'
bold
'
,
backgroundColor
:
'
#E0CEE8
'
,
color
:
'
black
'
,
border
:
'
1px #D64D61
'
,
}}
>
설정
<
/button> : null
}
<
div
<
div
className
=
"
modal fade
"
className
=
"
modal fade
"
id
=
"
exitRoom
"
id
=
"
exitRoom
"
...
...
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