Skip to content

Commit b1b081c

Browse files
committed
hide search bar, change button text
1 parent 93122fb commit b1b081c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,12 +214,12 @@ function SpendRuleCardPage({route}: SpendRuleCardPageProps) {
214214
/>
215215
<SelectionList
216216
canSelectMultiple
217-
textInputOptions={{
217+
textInputOptions={eligibleCards.length > 0 ? {
218218
headerMessage,
219219
value: inputValue,
220220
label: translate('common.search'),
221221
onChangeText: setInputValue,
222-
}}
222+
} : undefined}
223223
data={listData}
224224
style={{
225225
listHeaderWrapperStyle: [styles.pt5, styles.pb2],
@@ -243,7 +243,7 @@ function SpendRuleCardPage({route}: SpendRuleCardPageProps) {
243243
}
244244
footerContent={
245245
<FormAlertWithSubmitButton
246-
buttonText={translate('common.save')}
246+
buttonText={eligibleCards.length > 0 ? translate('common.save') : translate('common.buttonConfirm')}
247247
isAlertVisible={false}
248248
isDisabled={isCardSettingsLoading}
249249
onSubmit={handleSave}

0 commit comments

Comments
 (0)