Skip to content

Commit ab8a3c5

Browse files
author
Kubit
committed
Fix tsc errors
1 parent 2a951cd commit ab8a3c5

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
@@ -9,7 +9,7 @@ import { getPillState } from './utils';
99

1010
const PillComponent = (
1111
{ variant, size, ctv, selected = false, disabled = false, ...props }: IPill,
12-
ref: React.ForwardedRef<HTMLDivElement>
12+
ref: React.ForwardedRef<HTMLButtonElement>
1313
) => {
1414
const variantStyles = useStylesV2<PillVariantPropsStylesType>({
1515
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)