Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import GenericEmptyStateComponent from '@components/EmptyStateComponent/GenericE
import FormAlertWithSubmitButton from '@components/FormAlertWithSubmitButton';
import HeaderWithBackButton from '@components/HeaderWithBackButton';
import ScreenWrapper from '@components/ScreenWrapper';
import ScrollView from '@components/ScrollView';
import SearchBar from '@components/SearchBar';
import SelectionList from '@components/SelectionList';
import SpendRuleListItem from '@components/SelectionList/ListItem/SpendRuleListItem';
Expand Down Expand Up @@ -141,13 +142,18 @@ function SpendRuleSelectionPage({route}: SpendRuleSelectionPageProps) {
)}

{isLoadedAndEmpty && (
<GenericEmptyStateComponent
headerMedia={illustrations.EmptyShelves}
headerContentStyles={styles.emptyShelvesIllustration}
title={translate('workspace.card.issueNewCard.spendRulesEmptyStateTitle')}
subtitle={translate('workspace.card.issueNewCard.spendRulesEmptyStateSubtitle')}
headerStyles={styles.emptyStateCardIllustrationContainer}
/>
<ScrollView
contentContainerStyle={[styles.flexGrow1, styles.flexShrink0]}
addBottomSafeAreaPadding
>
<GenericEmptyStateComponent
headerMedia={illustrations.EmptyShelves}
headerContentStyles={styles.emptyShelvesIllustration}
title={translate('workspace.card.issueNewCard.spendRulesEmptyStateTitle')}
subtitle={translate('workspace.card.issueNewCard.spendRulesEmptyStateSubtitle')}
headerStyles={styles.emptyStateCardIllustrationContainer}
/>
</ScrollView>
)}

{isLoadedWithContent && (
Expand Down
Loading