Skip to content

Commit 677f41d

Browse files
author
Kubit
committed
Improve typescript on PillV2 component
1 parent 8eb2dbd commit 677f41d

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.LegacyRef<HTMLDivElement> | undefined
12+
ref: React.ForwardedRef<HTMLDivElement>
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
@@ -25,7 +25,7 @@ const PillStandAloneComponent = (
2525

2626
return (
2727
<PillRootContainerStyled
28-
ref={ref as any}
28+
ref={ref}
2929
aria-controls={props['aria-controls']}
3030
aria-selected={type === PillType.TAB ? props.selected : undefined}
3131
as={[PillType.BUTTON, PillType.TAB].includes(type) ? PillAsButton : undefined}

0 commit comments

Comments
 (0)