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

수정중

parent 98480063
......@@ -100,7 +100,7 @@ const LeftHamberger = () => {
type="button"
className="m-3 rounded"
data-bs-toggle="modal"
data-bs-target="#exitRoom"
data-bs-target="#inviteRoom"
style={{
height: "30px",
fontWeight: "bold",
......@@ -113,7 +113,7 @@ const LeftHamberger = () => {
</button>
<div
className="modal fade"
id="exitRoom"
id="inviteRoom"
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"
......
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"
......
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