Skip to content

Commit fe44fcd

Browse files
committed
add scrollview
1 parent bc1b5d8 commit fe44fcd

1 file changed

Lines changed: 12 additions & 9 deletions

File tree

src/pages/workspace/rules/SpendRules/SpendRuleCardPage.tsx

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import {useFocusEffect} from '@react-navigation/native';
22
import React, {useCallback, useEffect, useState} from 'react';
3+
import {ScrollView} from 'react-native';
34
import type {OnyxEntry} from 'react-native-onyx';
45
import BlockingView from '@components/BlockingViews/BlockingView';
56
import FormAlertWithSubmitButton from '@components/FormAlertWithSubmitButton';
@@ -239,15 +240,17 @@ function SpendRuleCardPage({route}: SpendRuleCardPageProps) {
239240
shouldUpdateFocusedIndex
240241
shouldPreventDefaultFocusOnSelectRow={!canUseTouchScreen()}
241242
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>
251254
}
252255
footerContent={
253256
<FormAlertWithSubmitButton

0 commit comments

Comments
 (0)