Skip to content

Commit 93abf0c

Browse files
Fix build errors:
- Update FormField import in region-select.tsx - Replace @storybook/jest with @storybook/test Co-authored-by: Jake Ruesink <jake@lambdacurry.dev>
1 parent 2277bb6 commit 93abf0c

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

apps/docs/src/remix-hook-form/region-select.test.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { expect } from '@storybook/jest';
1+
import { expect } from '@storybook/test';
22
import { userEvent, within } from '@storybook/testing-library';
33
import { StoryContext } from '@storybook/react';
44

@@ -77,4 +77,3 @@ export const testValidationErrors = async ({ canvasElement }: StoryContext) => {
7777
await expect(await canvas.findByText('Please select a province')).toBeInTheDocument();
7878
await expect(await canvas.findByText('Please select a region')).toBeInTheDocument();
7979
};
80-

packages/components/src/remix-hook-form/region-select.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import * as React from 'react';
22
import { useRemixFormContext } from 'remix-hook-form';
3-
import { FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from './form';
3+
import { FormControl, FormDescription, FormItem, FormLabel, FormMessage } from './form';
4+
import { FormField } from '../ui/form';
45
import { RegionSelect as UIRegionSelect, type RegionSelectProps as UIRegionSelectProps } from '../ui/region-select';
56

67
export interface RegionSelectProps extends Omit<UIRegionSelectProps, 'value' | 'onValueChange'> {
@@ -40,4 +41,3 @@ export function RegionSelect({
4041
/>
4142
);
4243
}
43-

0 commit comments

Comments
 (0)