Skip to content

Commit

Permalink
feat(HorizontalCell): extends from TappableProps (#5918)
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackySoul authored Oct 5, 2023
1 parent 3aced02 commit b74ced7
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions packages/vkui/src/components/HorizontalCell/HorizontalCell.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import * as React from 'react';
import { classNames, hasReactNode } from '@vkontakte/vkjs';
import { HasComponent, HasRef, HasRootRef, HTMLAttributesWithRootRef } from '../../types';
import { HasRef, HasRootRef, HTMLAttributesWithRootRef } from '../../types';
import { Avatar } from '../Avatar/Avatar';
import { Tappable } from '../Tappable/Tappable';
import { Tappable, type TappableProps } from '../Tappable/Tappable';
import { Caption } from '../Typography/Caption/Caption';
import { Footnote } from '../Typography/Footnote/Footnote';
import { Subhead } from '../Typography/Subhead/Subhead';
Expand All @@ -27,10 +27,9 @@ const CellTypography = ({ size, children, ...restProps }: CellTypographyProps) =
};

export interface HorizontalCellProps
extends React.AnchorHTMLAttributes<HTMLElement>,
extends Omit<TappableProps, 'size' | 'getRootRef'>,
HasRootRef<HTMLDivElement>,
HasRef<HTMLDivElement>,
HasComponent {
HasRef<HTMLDivElement> {
size?: 's' | 'm' | 'l';
/**
* Заголовок
Expand All @@ -44,7 +43,6 @@ export interface HorizontalCellProps
* Дополнительная строка текста под `children` и `subtitle`.
*/
extraSubtitle?: React.ReactNode;
disabled?: boolean;
}

/**
Expand Down

0 comments on commit b74ced7

Please sign in to comment.