Skip to content

Commit

Permalink
reverted chat toggle icon
Browse files Browse the repository at this point in the history
WebXR
  • Loading branch information
slowsynapse authored Jan 17, 2025
2 parents a7c7908 + a578d8d commit 8b291c8
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
} from "react";
import Link from "next/link";
import { Menu, Transition } from '@headlessui/react'
import { clsx } from "clsx";
// import { clsx } from "clsx";
import { useTranslation, Trans } from 'react-i18next';
import {
ChatBubbleLeftIcon,
Expand Down Expand Up @@ -59,6 +59,7 @@ import { AmicaLifeContext } from "@/features/amicaLife/amicaLifeContext";
import { ChatModeText } from "@/components/chatModeText";

import { TimestampedPrompt } from "@/features/amicaLife/eventHandler";
import { VerticalSwitchBox } from "@/components/switchBox";

function detectVRHeadset() {
const userAgent = navigator.userAgent.toLowerCase();
Expand Down Expand Up @@ -445,7 +446,8 @@ export default function Home() {
label="debug"
/>

{ showChatMode ? (
{/* Temp Disable : WebXR */}
{/* { showChatMode ? (
<MenuButton
large={isVRHeadset}
icon={Squares2X2Icon}
Expand All @@ -461,7 +463,16 @@ export default function Home() {
onClick={toggleChatMode}
label="show chat mode"
/>
)}
)} */}

<div className="flex flex-row items-center space-x-2">
<VerticalSwitchBox
value={showChatMode}
label={""}
onChange={toggleChatMode}
/>
</div>

</div>
</div>
</div>
Expand Down

0 comments on commit 8b291c8

Please sign in to comment.