diff --git a/src/components/EmptyStateComponent/index.tsx b/src/components/EmptyStateComponent/index.tsx index 876f1a745403..8eb991b17b63 100644 --- a/src/components/EmptyStateComponent/index.tsx +++ b/src/components/EmptyStateComponent/index.tsx @@ -22,6 +22,7 @@ function EmptyStateComponent({ buttonAction, containerStyles, title, + titleStyles, subtitle, headerStyles, headerContentStyles, @@ -30,7 +31,7 @@ function EmptyStateComponent({ }: EmptyStateComponentProps) { const styles = useThemeStyles(); const [videoAspectRatio, setVideoAspectRatio] = useState(VIDEO_ASPECT_RATIO); - const {isSmallScreenWidth} = useResponsiveLayout(); + const {shouldUseNarrowLayout} = useResponsiveLayout(); const setAspectRatio = (event: VideoReadyForDisplayEvent | VideoLoadedEventType | undefined) => { if (!event) { @@ -82,7 +83,10 @@ function EmptyStateComponent({ }, [headerMedia, headerMediaType, headerContentStyles, videoAspectRatio, styles.emptyStateVideo, lottieWebViewStyles]); return ( - + {HeaderComponent} - - {title} - {subtitle} + + {title} + {typeof subtitle === 'string' ? {subtitle} : subtitle} {!!buttonText && !!buttonAction && (