diff --git a/web/src/components/settings/General.tsx b/web/src/components/settings/General.tsx index d82731300..70f6203b2 100644 --- a/web/src/components/settings/General.tsx +++ b/web/src/components/settings/General.tsx @@ -1,14 +1,5 @@ import Heading from "@/components/ui/heading"; import { Label } from "@/components/ui/label"; -import { - Select, - SelectContent, - SelectGroup, - SelectItem, - SelectLabel, - SelectTrigger, - SelectValue, -} from "@/components/ui/select"; import { Switch } from "@/components/ui/switch"; import { useEffect } from "react"; @@ -24,22 +15,6 @@ export default function General() { {}} /> - -
- -
); } diff --git a/web/src/components/timeline/SummaryTimeline.tsx b/web/src/components/timeline/SummaryTimeline.tsx index 40684543c..54573c4f4 100644 --- a/web/src/components/timeline/SummaryTimeline.tsx +++ b/web/src/components/timeline/SummaryTimeline.tsx @@ -9,7 +9,6 @@ import { import { SummarySegment } from "./SummarySegment"; import { useTimelineUtils } from "@/hooks/use-timeline-utils"; import { ReviewSegment, ReviewSeverity } from "@/types/review"; -import { isMobile } from "react-device-detect"; export type SummaryTimelineProps = { reviewTimelineRef: RefObject; @@ -188,7 +187,7 @@ export function SummaryTimeline({ e.stopPropagation(); let clientY; - if (isMobile && e.nativeEvent instanceof TouchEvent) { + if (e.nativeEvent instanceof TouchEvent) { clientY = e.nativeEvent.touches[0].clientY; } else if (e.nativeEvent instanceof MouseEvent) { clientY = e.nativeEvent.clientY; @@ -239,7 +238,7 @@ export function SummaryTimeline({ setIsDragging(true); let clientY; - if (isMobile && e.nativeEvent instanceof TouchEvent) { + if (e.nativeEvent instanceof TouchEvent) { clientY = e.nativeEvent.touches[0].clientY; } else if (e.nativeEvent instanceof MouseEvent) { clientY = e.nativeEvent.clientY; @@ -277,7 +276,7 @@ export function SummaryTimeline({ } e.stopPropagation(); let clientY; - if (isMobile && e instanceof TouchEvent) { + if (e instanceof TouchEvent) { clientY = e.touches[0].clientY; } else if (e instanceof MouseEvent) { clientY = e.clientY; diff --git a/web/src/hooks/use-draggable-element.ts b/web/src/hooks/use-draggable-element.ts index 75f733aeb..f18cae152 100644 --- a/web/src/hooks/use-draggable-element.ts +++ b/web/src/hooks/use-draggable-element.ts @@ -1,5 +1,4 @@ import { ReactNode, useCallback, useEffect, useMemo, useState } from "react"; -import { isMobile } from "react-device-detect"; import scrollIntoView from "scroll-into-view-if-needed"; import { useTimelineUtils } from "./use-timeline-utils"; @@ -88,7 +87,7 @@ function useDraggableElement({ const getClientYPosition = useCallback( (e: MouseEvent | TouchEvent) => { let clientY; - if (isMobile && e instanceof TouchEvent) { + if (e instanceof TouchEvent) { clientY = e.touches[0].clientY; } else if (e instanceof MouseEvent) { clientY = e.clientY; @@ -114,7 +113,7 @@ function useDraggableElement({ setIsDragging(true); let clientY; - if (isMobile && e.nativeEvent instanceof TouchEvent) { + if (e.nativeEvent instanceof TouchEvent) { clientY = e.nativeEvent.touches[0].clientY; } else if (e.nativeEvent instanceof MouseEvent) { clientY = e.nativeEvent.clientY; diff --git a/web/src/pages/Settings.tsx b/web/src/pages/Settings.tsx index 96f48f6d9..278fecac9 100644 --- a/web/src/pages/Settings.tsx +++ b/web/src/pages/Settings.tsx @@ -237,7 +237,7 @@ function CameraSelectButton({ )} -
+
{allCameras.map((item) => (