Skip to content

Commit fc4ba36

Browse files
Fix FormLabel import error in switch-custom component
- Change FormLabel and FormMessage from type-only imports to actual imports - This fixes the 'Can't find variable: FormLabel' runtime error - Components need to be imported as actual values, not just types
1 parent 1b6dc5a commit fc4ba36

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/docs/src/remix-hook-form/switch-custom.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { zodResolver } from '@hookform/resolvers/zod';
22
import { Switch } from '@lambdacurry/forms/remix-hook-form/switch';
3-
import type { FormLabel, FormMessage } from '@lambdacurry/forms/remix-hook-form/form';
3+
import { FormLabel, FormMessage } from '@lambdacurry/forms/remix-hook-form/form';
44
import { Button } from '@lambdacurry/forms/ui/button';
55
import * as SwitchPrimitive from '@radix-ui/react-switch';
66
import type { Meta, StoryObj } from '@storybook/react-vite';

0 commit comments

Comments
 (0)