Skip to content

Commit febe82d

Browse files
author
Kubit
committed
Fix typescript refs error
1 parent ccc4080 commit febe82d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/pillV2/pill.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const PillComponent = (
1616
disabled = false,
1717
...props
1818
}: React.PropsWithChildren<IPill>,
19-
ref: React.ForwardedRef<HTMLDivElement>
19+
ref: React.ForwardedRef<HTMLButtonElement>
2020
) => {
2121
const variantStyles = useStylesV2<PillVariantPropsStylesType>({
2222
styleName: STYLES_NAME.PILL_V2,

src/components/pillV2/pillStandAlone.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { IPillStandAlone, PillType } from './types';
1818

1919
const PillStandAloneComponent = (
2020
{ dataTestId = 'pill', type = PillType.BUTTON, ...props }: IPillStandAlone,
21-
ref: React.ForwardedRef<HTMLDivElement> | undefined | null
21+
ref: React.ForwardedRef<HTMLButtonElement> | undefined | null
2222
): JSX.Element => {
2323
const id = useId('pill');
2424
const pillContentId = `${id}-content`;

0 commit comments

Comments
 (0)