From 4e343f1a829a875cccd81299075fa04011d2d1be Mon Sep 17 00:00:00 2001 From: Gerome Elassaad Date: Fri, 6 Feb 2026 07:55:09 +1100 Subject: [PATCH] fix: remove 'use client' directives incompatible with Vite (#2033) * Remove 'use client' directive from Collapsible.tsx removed incompatible 'use client' * Remove 'use client' directive from ScrollArea.tsx incompatible 'use client' removed * Remove 'use client' directive from Badge.tsx incompatible 'use client' removed --- app/components/ui/Badge.tsx | 2 -- app/components/ui/Collapsible.tsx | 2 -- app/components/ui/ScrollArea.tsx | 2 -- 3 files changed, 6 deletions(-) diff --git a/app/components/ui/Badge.tsx b/app/components/ui/Badge.tsx index 14729e6b..720f9c35 100644 --- a/app/components/ui/Badge.tsx +++ b/app/components/ui/Badge.tsx @@ -1,5 +1,3 @@ -'use client'; - import * as React from 'react'; import { cva, type VariantProps } from 'class-variance-authority'; import { classNames } from '~/utils/classNames'; diff --git a/app/components/ui/Collapsible.tsx b/app/components/ui/Collapsible.tsx index 61ddbbb6..279f6a58 100644 --- a/app/components/ui/Collapsible.tsx +++ b/app/components/ui/Collapsible.tsx @@ -1,5 +1,3 @@ -'use client'; - import * as CollapsiblePrimitive from '@radix-ui/react-collapsible'; const Collapsible = CollapsiblePrimitive.Root; diff --git a/app/components/ui/ScrollArea.tsx b/app/components/ui/ScrollArea.tsx index 38176a28..e04fe28f 100644 --- a/app/components/ui/ScrollArea.tsx +++ b/app/components/ui/ScrollArea.tsx @@ -1,5 +1,3 @@ -'use client'; - import * as React from 'react'; import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area'; import { classNames } from '~/utils/classNames';