Skip to content

Commit 30fa282

Browse files
author
Kubit
committed
Fix typescript and eslint errors
1 parent 6fb247e commit 30fa282

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/components/navigationCard/navigationCardStandAlone.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const NavigationCardStandaloneComponent = (
3636
return (
3737
// Can not be spread -> styled component breaks
3838
<NavigationCardStyled
39-
ref={ref as React.ForwardedRef<HTMLButtonElement>}
39+
ref={ref as any}
4040
aria-disabled={props['aria-disabled']}
4141
as={props.url ? props.component : 'button'}
4242
className={props.className}

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<HTMLButtonElement> | undefined
12+
ref: React.LegacyRef<HTMLDivElement> | undefined
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}
28+
ref={ref as any}
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}

src/constants/keyboardKeys.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ const ARROW_DOWN = {
6767

6868
const DELETE = {
6969
key: 'Delete',
70-
which: 8 || 46,
71-
keyCode: 8 || 46,
70+
which: 46,
71+
keyCode: 46,
7272
code: 'ArrowDecimal',
7373
};
7474

0 commit comments

Comments
 (0)