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 = () => {
type
=
"
button
"
className
=
"
m-3 rounded
"
data
-
bs
-
toggle
=
"
modal
"
data
-
bs
-
target
=
"
#
ex
itRoom
"
data
-
bs
-
target
=
"
#
inv
it
e
Room
"
style
=
{{
height
:
"
30px
"
,
fontWeight
:
"
bold
"
,
...
...
@@ -113,7 +113,7 @@ const LeftHamberger = () => {
<
/button
>
<
div
className
=
"
modal fade
"
id
=
"
ex
itRoom
"
id
=
"
inv
it
e
Room
"
tabIndex
=
"
-1
"
aria
-
labelledby
=
"
exitRoomLabel
"
aria
-
hidden
=
"
true
"
...
...
@@ -140,6 +140,17 @@ const LeftHamberger = () => {
>
카카오로
초대
<
/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
type
=
"
submit
"
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
'
const
RightHamberger
=
()
=>
{
function
copyInput
()
{
const
t
=
document
.
querySelector
(
'
#roomId
'
).
innerText
;
console
.
log
(
t
)
navigator
.
clipboard
.
writeText
(
t
);
document
.
execCommand
(
'
copy
'
);
}
const
[
admin
,
setAdmin
]
=
useState
(
'
true
'
)
return
(
<
div
>
<
div
>
...
...
@@ -75,6 +69,20 @@ const RightHamberger = () => {
>
퇴장
<
/button
>
{
admin
?
<
button
type
=
"
button
"
className
=
"
m-3 rounded
"
style
=
{{
height
:
'
30px
'
,
fontWeight
:
'
bold
'
,
backgroundColor
:
'
#E0CEE8
'
,
color
:
'
black
'
,
border
:
'
1px #D64D61
'
,
}}
>
설정
<
/button> : null
}
<
div
className
=
"
modal fade
"
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