From 3958b2430785ea316a1b6940e60b3b95519b21f7 Mon Sep 17 00:00:00 2001 From: Dmytro Stanchiev Date: Mon, 25 May 2026 09:24:24 -0400 Subject: [PATCH] refactor: remove isMobile forks from DialogContent and DialogFooter --- src/components/ui/dialog.tsx | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/src/components/ui/dialog.tsx b/src/components/ui/dialog.tsx index 30b980c..75e07ef 100644 --- a/src/components/ui/dialog.tsx +++ b/src/components/ui/dialog.tsx @@ -4,7 +4,6 @@ import * as DialogPrimitive from "@radix-ui/react-dialog"; import { XIcon } from "lucide-react"; import type * as React from "react"; -import { useIsMobile } from "@/hooks/use-mobile"; import { cn } from "@/lib/utils"; function Dialog({ @@ -55,16 +54,13 @@ function DialogContent({ }: React.ComponentProps & { showCloseButton?: boolean; }) { - const isMobile = useIsMobile(); - return ( ) { } function DialogFooter({ className, ...props }: React.ComponentProps<"div">) { - const isMobile = useIsMobile(); - return (
);