Skip to content

Commit

Permalink
Fix typescript refs error
Browse files Browse the repository at this point in the history
  • Loading branch information
kubit-ui committed Aug 6, 2024
1 parent ccc4080 commit febe82d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/pillV2/pill.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const PillComponent = (
disabled = false,
...props
}: React.PropsWithChildren<IPill>,
ref: React.ForwardedRef<HTMLDivElement>
ref: React.ForwardedRef<HTMLButtonElement>
) => {
const variantStyles = useStylesV2<PillVariantPropsStylesType>({
styleName: STYLES_NAME.PILL_V2,
Expand Down
2 changes: 1 addition & 1 deletion src/components/pillV2/pillStandAlone.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { IPillStandAlone, PillType } from './types';

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

0 comments on commit febe82d

Please sign in to comment.