Skip to content

Commit d57c3cf

Browse files
fix: importing types from a local file instead of the package in SfBadge (#2939)
--------- Co-authored-by: Szymon Dziewoński <[email protected]>
1 parent f8fc887 commit d57c3cf

File tree

5 files changed

+12
-7
lines changed

5 files changed

+12
-7
lines changed

.changeset/fast-pugs-warn.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@storefront-ui/react': patch
3+
---
4+
5+
Import types from package in SfBadge

packages/sfui/frameworks/react/components/SfBadge/SfBadge.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { SfBadgePlacement } from '@storefront-ui/shared';
22
import classNames from 'classnames';
3-
import type { SfBadgeProps } from './types';
3+
import type { SfBadgeProps } from '@storefront-ui/react';
44

55
export default function SfBadge({
66
content,
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export { default as SfBadge } from './SfBadge';
2-
31
export * from './types';
2+
3+
export { default as SfBadge } from './SfBadge';
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export { default as SfRadio } from './SfRadio';
2-
31
export * from './types';
2+
3+
export { default as SfRadio } from './SfRadio';
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export { default as SfRatingButton } from './SfRatingButton';
2-
31
export * from './types';
2+
3+
export { default as SfRatingButton } from './SfRatingButton';

0 commit comments

Comments
 (0)