Skip to content

Commit 520a2c7

Browse files
Fix build errors in select components refactoring
- Updated imports in data files to use SelectOption from select.tsx instead of RegionOption from region-select.tsx - Removed non-existent tooltip export from UI index file
1 parent 60b1390 commit 520a2c7

3 files changed

Lines changed: 4 additions & 8 deletions

File tree

packages/components/src/ui/data/canada-provinces.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { RegionOption } from '../region-select';
1+
import { SelectOption } from '../select';
22

3-
export const CANADA_PROVINCES: RegionOption[] = [
3+
export const CANADA_PROVINCES: SelectOption[] = [
44
{ value: 'AB', label: 'Alberta' },
55
{ value: 'BC', label: 'British Columbia' },
66
{ value: 'MB', label: 'Manitoba' },
@@ -15,4 +15,3 @@ export const CANADA_PROVINCES: RegionOption[] = [
1515
{ value: 'SK', label: 'Saskatchewan' },
1616
{ value: 'YT', label: 'Yukon' },
1717
];
18-

packages/components/src/ui/data/us-states.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { RegionOption } from '../region-select';
1+
import { SelectOption } from '../select';
22

3-
export const US_STATES: RegionOption[] = [
3+
export const US_STATES: SelectOption[] = [
44
{ value: 'AL', label: 'Alabama' },
55
{ value: 'AK', label: 'Alaska' },
66
{ value: 'AZ', label: 'Arizona' },
@@ -53,4 +53,3 @@ export const US_STATES: RegionOption[] = [
5353
{ value: 'WY', label: 'Wyoming' },
5454
{ value: 'DC', label: 'District of Columbia' },
5555
];
56-

packages/components/src/ui/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ export * from './badge';
3030
export * from './command';
3131
export * from './select';
3232
export * from './separator';
33-
export * from './tooltip';
3433
export * from './us-state-select';
3534
export * from './canada-province-select';
3635
export * from './data/us-states';
3736
export * from './data/canada-provinces';
38-

0 commit comments

Comments
 (0)