Merge pull request #3 from cartesiancs/develop

Develop
This commit is contained in:
Huh Hyeongjun 2025-02-26 16:47:17 +09:00 committed by GitHub
commit c68ad5c694
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 23 additions and 3 deletions

View File

@ -22,6 +22,9 @@ interface ButtonProps
export function TopNav({ step }: { step: number }) {
const setThirdMode = useCarStore((state) => state.setThirdMode);
const thirdMode = useCarStore((state) => state.thirdMode);
const isMobile = /Mobi|Android/i.test(navigator.userAgent);
const [openModal, setOpenModal] = useState(false);
return (
@ -91,9 +94,25 @@ export function TopNav({ step }: { step: number }) {
Options
</NavButton>
<NavButton isShow={step == 2} onClick={() => setThirdMode(true)}>
Car Mode
</NavButton>
{!isMobile && (
<>
{thirdMode ? (
<NavButton
isShow={step == 2}
onClick={() => setThirdMode(false)}
>
Disable Car
</NavButton>
) : (
<NavButton
isShow={step == 2}
onClick={() => setThirdMode(true)}
>
Car Mode
</NavButton>
)}
</>
)}
</div>
</div>

View File

@ -15,6 +15,7 @@ body,
-ms-user-select: none;
user-select: none;
-ms-overflow-style: none;
overflow: hidden;
}
::-webkit-scrollbar {