diff --git a/src/components/EmptyStateComponent/index.tsx b/src/components/EmptyStateComponent/index.tsx index 644cc00a3d76f..8af68e3cd440d 100644 --- a/src/components/EmptyStateComponent/index.tsx +++ b/src/components/EmptyStateComponent/index.tsx @@ -1,4 +1,5 @@ import type {VideoReadyForDisplayEvent} from 'expo-av'; +import isEmpty from 'lodash/isEmpty'; import React, {useMemo, useState} from 'react'; import {View} from 'react-native'; import Button from '@components/Button'; @@ -24,6 +25,8 @@ function EmptyStateComponent({ subtitle, children, headerStyles, + cardStyles, + cardContentStyles, headerContentStyles, lottieWebViewStyles, minModalHeight = 400, @@ -83,26 +86,24 @@ function EmptyStateComponent({ return ( - - - + {!!SkeletonComponent && ( + + + + )} - + {HeaderComponent} - + {title} {subtitle} {children} - - {buttons?.map(({buttonText, buttonAction, success, icon, isDisabled}, index) => ( - + {!isEmpty(buttons) && ( + + {buttons?.map(({buttonText, buttonAction, success, icon, isDisabled}) => (