diff --git a/src/components/FilePreview/FilePreview.tsx b/src/components/FilePreview/FilePreview.tsx index f3f8e83..ee31103 100644 --- a/src/components/FilePreview/FilePreview.tsx +++ b/src/components/FilePreview/FilePreview.tsx @@ -11,7 +11,15 @@ import { TextAlignLeft as TextIcon, Filmstrip as VideoIcon, } from '@gravity-ui/icons'; -import {Icon, IconData, Text, useActionHandlers, useMobile, useUniqId} from '@gravity-ui/uikit'; +import { + Icon, + IconData, + QAProps, + Text, + useActionHandlers, + useMobile, + useUniqId, +} from '@gravity-ui/uikit'; import {block} from '../utils/cn'; @@ -36,9 +44,8 @@ const FILE_ICON: Record = { table: TableIcon, }; -export interface FilePreviewProps { +export interface FilePreviewProps extends QAProps { className?: string; - qa?: string; file: File; imageSrc?: string; diff --git a/src/components/Notification/definitions.ts b/src/components/Notification/definitions.ts index f8119d8..267f06d 100644 --- a/src/components/Notification/definitions.ts +++ b/src/components/Notification/definitions.ts @@ -1,4 +1,4 @@ -import {ButtonProps, IconData} from '@gravity-ui/uikit'; +import {ButtonProps, IconData, QAProps} from '@gravity-ui/uikit'; export type NotificationTheme = 'success' | 'info' | 'warning' | 'danger'; @@ -40,11 +40,10 @@ export type NotificationProps = { }; export type NotificationActionProps = { - qa?: string; view?: ButtonProps['view']; icon?: IconData; text: string; onClick?: (event: React.MouseEvent) => void; href?: string; target?: '_blank'; -}; +} & QAProps; diff --git a/src/components/Notifications/definitions.ts b/src/components/Notifications/definitions.ts index 1a1eb13..66a5b8c 100644 --- a/src/components/Notifications/definitions.ts +++ b/src/components/Notifications/definitions.ts @@ -1,10 +1,10 @@ +import {QAProps} from '@gravity-ui/uikit'; + import {NotificationActionProps, NotificationProps} from '../Notification/definitions'; export type NotificationsActionProps = NotificationActionProps; export type NotificationsProps = { - qa?: string; - title?: React.ReactNode; actions?: React.ReactNode; @@ -23,4 +23,4 @@ export type NotificationsProps = { emptyImage?: React.ReactNode; swipeThreshold?: number; -}; +} & QAProps;