|
1 | 1 | import {useFocusEffect} from '@react-navigation/native'; |
2 | 2 | import React, {useCallback, useEffect, useState} from 'react'; |
| 3 | +import {ScrollView} from 'react-native'; |
3 | 4 | import type {OnyxEntry} from 'react-native-onyx'; |
4 | 5 | import BlockingView from '@components/BlockingViews/BlockingView'; |
5 | 6 | import FormAlertWithSubmitButton from '@components/FormAlertWithSubmitButton'; |
@@ -239,15 +240,17 @@ function SpendRuleCardPage({route}: SpendRuleCardPageProps) { |
239 | 240 | shouldUpdateFocusedIndex |
240 | 241 | shouldPreventDefaultFocusOnSelectRow={!canUseTouchScreen()} |
241 | 242 | listEmptyContent={ |
242 | | - <BlockingView |
243 | | - icon={illustrations.HandCard} |
244 | | - iconWidth={variables.iconSection} |
245 | | - iconHeight={variables.iconSection} |
246 | | - title={inputValue.trim() ? translate('common.noResultsFound') : translate('workspace.rules.spendRules.noAvailableCards')} |
247 | | - titleStyles={styles.mb2} |
248 | | - subtitle={translate('workspace.rules.spendRules.noAvailableCardsSubtitle')} |
249 | | - subtitleStyle={styles.textSupporting} |
250 | | - /> |
| 243 | + <ScrollView contentContainerStyle={[styles.flexGrow1]}> |
| 244 | + <BlockingView |
| 245 | + icon={illustrations.HandCard} |
| 246 | + iconWidth={variables.iconSection} |
| 247 | + iconHeight={variables.iconSection} |
| 248 | + title={inputValue.trim() ? translate('common.noResultsFound') : translate('workspace.rules.spendRules.noAvailableCards')} |
| 249 | + titleStyles={styles.mb2} |
| 250 | + subtitle={translate('workspace.rules.spendRules.noAvailableCardsSubtitle')} |
| 251 | + subtitleStyle={styles.textSupporting} |
| 252 | + /> |
| 253 | + </ScrollView> |
251 | 254 | } |
252 | 255 | footerContent={ |
253 | 256 | <FormAlertWithSubmitButton |
|
0 commit comments