Skip to content

Commit

Permalink
fix: removed variables for desktop and tablet
Browse files Browse the repository at this point in the history
  • Loading branch information
malmen237 committed Apr 10, 2024
1 parent acaa63f commit 72707b2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
4 changes: 0 additions & 4 deletions src/bowser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,3 @@ const deviceInfo = Bowser.parse(window.navigator.userAgent);

// platform type, can be either "desktop", "tablet" or "mobile"
export const isMobile = deviceInfo.platform.type === "mobile";

export const isTablet = deviceInfo.platform.type === "tablet";

export const isDesktop = deviceInfo.platform.type === "desktop";
4 changes: 1 addition & 3 deletions src/components/landing-page/create-production.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
} from "./form-elements.tsx";
import { API } from "../../api/api.ts";
import { useGlobalState } from "../../global-state/context-provider.tsx";
import { isDesktop, isMobile, isTablet } from "../../bowser.ts";
import { isMobile } from "../../bowser.ts";

type FormValues = {
productionName: string;
Expand Down Expand Up @@ -67,8 +67,6 @@ export const CreateProduction = () => {
useEffect(() => {
// TODO remove this after testing
console.log(`Is this a mobile? "${isMobile}"`);
console.log(`Is this a tablet? "${isTablet}"`);
console.log(`Is this a desktop? "${isDesktop}"`);
if (createdProductionId) {
reset({
productionName: "",
Expand Down

0 comments on commit 72707b2

Please sign in to comment.