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
753cfd9f
Commit
753cfd9f
authored
Jul 09, 2021
by
이재연
Browse files
a
parent
c0273f7b
Changes
1
Show whitespace changes
Inline
Side-by-side
client/src/components/Room/ChannelList.js
View file @
753cfd9f
import
ChannelSingle
from
'
./ChannelSingle
'
import
{
Link
}
from
'
react-router-dom
'
import
backward
from
'
../../backward.png
'
import
{
useState
}
from
'
react
'
const
ChannelList
=
()
=>
{
function
copyLink
(){
const
copyLink
=
document
.
getElementById
(
'
copycode
'
)
document
.
execCommand
(
'
copy
'
);
console
.
log
(
'
너죽을래
'
)
}
return
(
<
div
>
<
nav
className
=
"
navbar navbar-light d-flex justify-content-between
"
>
...
...
@@ -50,7 +58,7 @@ const ChannelList = () => {
<
h5
className
=
"
col-6 offcanvas-title
"
id
=
"
offcanvasExampleLabel
"
>
음성
채널
목록
<
/h5
>
<
h6
className
=
"
mt-2
"
>
#
ASV2AE985
<
/
h6
>
<
button
className
=
"
mt-2
"
id
=
'
copycode
'
onClick
=
{
copyLink
()}
>
#
ASV2AE985
<
/
button
>
<
button
type
=
"
button
"
className
=
"
btn-close text-reset
"
...
...
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