Commit 776bd873 authored by 우지원's avatar 우지원
Browse files

수정중

parent 98480063
...@@ -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="#exitRoom" data-bs-target="#inviteRoom"
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="exitRoom" id="inviteRoom"
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"
......
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"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment