Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Commit

Permalink
Hide blur (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamil-stasiak authored Mar 29, 2024
1 parent c502757 commit 74757f7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions assets/src/features/devices/MediaSettingsModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { useLocalPeer } from "./LocalPeerMediaContext";
import { Modal } from "../shared/components/modal/Modal";
import { Checkbox } from "../shared/components/Checkbox";

const showBlurCheckbox = false;

export const MediaSettingsModal: React.FC = () => {
const { setOpen, isOpen } = useModal();
const { video, audio, blur, setBlur } = useLocalPeer();
Expand Down Expand Up @@ -49,13 +51,13 @@ export const MediaSettingsModal: React.FC = () => {
>
<div className="flex flex-col gap-2">
<DeviceSelector name="Select camera" devices={video.devices} setInput={setVideoInput} inputValue={videoInput} />
<Checkbox
{showBlurCheckbox && <Checkbox
label="Blur background (experimental)"
id="blur-background-checkbox"
onChange={() => setBlurInput((prev) => !prev)}
status={blurInput}
textSize="base"
/>
/>}
</div>
<DeviceSelector
name="Select microphone"
Expand Down
6 changes: 4 additions & 2 deletions assets/src/features/room-page/components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import MediaControlButton from "../../../pages/room/components/MediaControlButto
import { useModal } from "../../../contexts/ModalContext";
import useSmartphoneViewport from "../../shared/hooks/useSmartphoneViewport";

const showSettingsButton = false;

const Navbar: FC = () => {
const match = useParams();
const currentUrl = window.location.href;
Expand Down Expand Up @@ -52,7 +54,7 @@ const Navbar: FC = () => {
</Button>
</>
)}
<MediaControlButton
{showSettingsButton && <MediaControlButton
icon={Settings}
hover="Settings"
buttonClassName="!border !border-brand-dark-blue-200 "
Expand All @@ -62,7 +64,7 @@ const Navbar: FC = () => {
variant="light"
position="bottom"
hoverClassName="-ml-10"
/>
/>}
</div>
</div>
);
Expand Down

0 comments on commit 74757f7

Please sign in to comment.