Skip to content

Commit

Permalink
chore: turn off mobile redirect (temporarily)
Browse files Browse the repository at this point in the history
related to #47
  • Loading branch information
JeelRajodiya committed Aug 24, 2024
1 parent 3a1c2dc commit 9e48063
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/providers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import { theme } from "./styles/theme";
import { useEffect } from "react";

export function Providers({ children }: { children: React.ReactNode }) {
useEffect(() => {
if (window.innerWidth < 768 && !window.location.href.includes("/mobile")) {
window.location.href = "/mobile";
}
}, []);
// useEffect(() => {
// if (window.innerWidth < 768 && !window.location.href.includes("/mobile")) {
// window.location.href = "/mobile";
// }
// }, []);

return <ChakraProvider theme={theme}>{children}</ChakraProvider>;
}

0 comments on commit 9e48063

Please sign in to comment.