upd
This commit is contained in:
+2
-2
@@ -363,7 +363,7 @@ function App() {
|
|||||||
<MailIcon className="lg:w-8 lg:h-8 w-6 h-6" />
|
<MailIcon className="lg:w-8 lg:h-8 w-6 h-6" />
|
||||||
</a>
|
</a>
|
||||||
<a
|
<a
|
||||||
href="tel:88007700076"
|
href="tel:88007700067"
|
||||||
className="2xl:h-16 h-14 px-6 py-4 2xl:text-base text-sm border rounded-full font-medium flex justify-between items-center w-full border-[#52587A] opacity-80 hover:opacity-100 transition-all"
|
className="2xl:h-16 h-14 px-6 py-4 2xl:text-base text-sm border rounded-full font-medium flex justify-between items-center w-full border-[#52587A] opacity-80 hover:opacity-100 transition-all"
|
||||||
>
|
>
|
||||||
<span>
|
<span>
|
||||||
@@ -442,7 +442,7 @@ function App() {
|
|||||||
<div className="flex justify-between items-center">
|
<div className="flex justify-between items-center">
|
||||||
<div className="text-[#EBEBEB] flex flex-col gap-1">
|
<div className="text-[#EBEBEB] flex flex-col gap-1">
|
||||||
<a href="mailto:info@graff.tech">info@graff.tech</a>
|
<a href="mailto:info@graff.tech">info@graff.tech</a>
|
||||||
<a href="tel:88007700076">8 800 770 00 76</a>
|
<a href="tel:88007700067">8 800 770 00 67</a>
|
||||||
</div>
|
</div>
|
||||||
<div className="w-12 h-12 border border-[#3D425C] rounded-full flex justify-center items-center">
|
<div className="w-12 h-12 border border-[#3D425C] rounded-full flex justify-center items-center">
|
||||||
RU
|
RU
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import MicroOffIcon from "./icons/MicroOffIcon";
|
|||||||
|
|
||||||
function ToggleMic({ socket, handleUpdate }: any) {
|
function ToggleMic({ socket, handleUpdate }: any) {
|
||||||
const room = useRoomContext();
|
const room = useRoomContext();
|
||||||
const [muted, setMuted] = useState(false);
|
const [muted, setMuted] = useState(true);
|
||||||
|
|
||||||
function toggleMic(value: boolean) {
|
function toggleMic(value: boolean) {
|
||||||
const audioTrack = room.localParticipant.getTrack(Track.Source.Microphone);
|
const audioTrack = room.localParticipant.getTrack(Track.Source.Microphone);
|
||||||
@@ -45,6 +45,10 @@ function ToggleMic({ socket, handleUpdate }: any) {
|
|||||||
room.on(RoomEvent.TrackUnmuted, (_, participant) => {
|
room.on(RoomEvent.TrackUnmuted, (_, participant) => {
|
||||||
console.log(participant);
|
console.log(participant);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
room.on("localTrackPublished", () => {
|
||||||
|
room.localParticipant.getTrack(Track.Source.Microphone)?.mute();
|
||||||
|
});
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -29,15 +29,15 @@ function UsersManagementModal({
|
|||||||
const [users] = useStreamUserStore((state) => [state.users]);
|
const [users] = useStreamUserStore((state) => [state.users]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="relative lg:p-10 p-6 bg-[#131317] rounded shadow-lg w-[320px] flex flex-col gap-2">
|
<div className="relative lg:p-10 p-6 bg-[#131317] rounded shadow-lg w-[360px] flex flex-col gap-2">
|
||||||
<div className="flex flex-col lg:gap-8 gap-4">
|
<div className="flex flex-col lg:gap-8 gap-4">
|
||||||
<p className="font-gilroy lg:text-2xl">
|
<p className="font-gilroy lg:text-2xl">
|
||||||
<Trans i18nKey={"members"}>Участники</Trans>
|
<Trans i18nKey={"members"}>Участники</Trans>
|
||||||
</p>
|
</p>
|
||||||
<div className="flex flex-col gap-2">
|
<div className="flex flex-col gap-4">
|
||||||
{users.map((user: any, index: number) => (
|
{users.map((user: any, index: number) => (
|
||||||
<div key={index} className="relative">
|
<div key={index} className="relative">
|
||||||
<div className="flex items-center gap-2 text-white">
|
<div className="flex items-center gap-4 text-white">
|
||||||
<div className="relative flex flex-col">
|
<div className="relative flex flex-col">
|
||||||
{user.admin ? <AdminUserIcon /> : <UserIcon />}
|
{user.admin ? <AdminUserIcon /> : <UserIcon />}
|
||||||
</div>
|
</div>
|
||||||
@@ -77,19 +77,19 @@ function UsersManagementModal({
|
|||||||
)}
|
)}
|
||||||
|
|
||||||
{!user.muted ? (
|
{!user.muted ? (
|
||||||
<p
|
<button
|
||||||
onClick={() => handleUpdate(user.id, { muted: true })}
|
onClick={() => handleUpdate(user.id, { muted: true })}
|
||||||
className="outline-none"
|
className="outline-none"
|
||||||
>
|
>
|
||||||
<MicroOnIcon />
|
<MicroOnIcon />
|
||||||
</p>
|
</button>
|
||||||
) : (
|
) : (
|
||||||
<p
|
<button
|
||||||
onClick={() => handleUpdate(user.id, { muted: false })}
|
onClick={() => handleUpdate(user.id, { muted: false })}
|
||||||
className="outline-none"
|
className="outline-none"
|
||||||
>
|
>
|
||||||
<MicroOffIcon />
|
<MicroOffIcon />
|
||||||
</p>
|
</button>
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user