From 77ad28d8aa0af910999e0ed54fce806767241946 Mon Sep 17 00:00:00 2001 From: Alexander Burobin Date: Tue, 29 Oct 2024 12:56:47 +0300 Subject: [PATCH] feat(PlaceholderContainer): add qa prop (#1925) Co-authored-by: Aleksandr Burobin --- src/components/PlaceholderContainer/PlaceholderContainer.tsx | 3 ++- src/components/PlaceholderContainer/types.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/PlaceholderContainer/PlaceholderContainer.tsx b/src/components/PlaceholderContainer/PlaceholderContainer.tsx index 7ff190f24c..2c7fab8bdc 100644 --- a/src/components/PlaceholderContainer/PlaceholderContainer.tsx +++ b/src/components/PlaceholderContainer/PlaceholderContainer.tsx @@ -38,6 +38,7 @@ export const PlaceholderContainer = ({ image, content, actions, + qa, }: PlaceholderContainerProps) => { const renderTitle = () => { if (!title) { @@ -97,7 +98,7 @@ export const PlaceholderContainer = ({ }; return ( -
+
{renderImage()}
{renderContent()} diff --git a/src/components/PlaceholderContainer/types.ts b/src/components/PlaceholderContainer/types.ts index db0b4c691c..732b4b090d 100644 --- a/src/components/PlaceholderContainer/types.ts +++ b/src/components/PlaceholderContainer/types.ts @@ -1,6 +1,7 @@ import type React from 'react'; import type {ButtonProps} from '../Button'; +import type {QAProps} from '../types'; type Size = 's' | 'm' | 'l' | 'promo'; @@ -18,7 +19,7 @@ export type PlaceholderContainerActionProps = Pick< text: string; }; -export interface PlaceholderContainerProps { +export interface PlaceholderContainerProps extends QAProps { size?: Size; direction?: 'row' | 'column'; align?: 'left' | 'center';