Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kosmydel committed Mar 15, 2024
1 parent 3e62eb3 commit efd2a9b
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/components/AmountPicker/AmountSelectorModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function AmountSelectorModal({value, description = '', onValueSelected, isVisibl
<Modal
type={CONST.MODAL.MODAL_TYPE.RIGHT_DOCKED}
isVisible={isVisible}
onClose={() => onClose?.()}
onClose={onClose}
onModalHide={onClose}
hideModalContentWhileAnimating
useNativeDriver
Expand All @@ -47,6 +47,7 @@ function AmountSelectorModal({value, description = '', onValueSelected, isVisibl
</View>
<Button
success
large
pressOnEnter
text={translate('common.save')}
onPress={() => onValueSelected?.(currentValue ?? '')}
Expand Down
5 changes: 2 additions & 3 deletions src/components/AmountPicker/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ type AmountSelectorModalProps = {
onValueSelected?: (value: string) => void;

/** Function to call when the user closes the modal */
onClose?: () => void;
} & Pick<MenuItemBaseProps, 'description'> &
AmountFormProps;
onClose: () => void;
} & Pick<MenuItemBaseProps, 'description'>;

type AmountPickerProps = {
/** Item to display */
Expand Down
1 change: 1 addition & 0 deletions src/components/TextPicker/TextSelectorModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ function TextSelectorModal({value, description = '', onValueSelected, isVisible,
</View>
<Button
success
large
pressOnEnter
text={translate('common.save')}
onPress={() => onValueSelected?.(currentValue ?? '')}
Expand Down
1 change: 1 addition & 0 deletions src/languages/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1883,6 +1883,7 @@ export default {
errors: {
taxRatealreadyExists: 'Ya existe un impuesto con este nombre',
valuePercentageRange: 'Introduzca un porcentaje válido entre 0 y 100',
genericFailureMessage: 'Se produjo un error al actualizar el tipo impositivo, inténtelo nuevamente.',
},
},
emptyWorkspace: {
Expand Down
5 changes: 4 additions & 1 deletion src/pages/workspace/taxes/WorkspaceNewTaxPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ function WorkspaceNewTaxPage({
return (
<AdminPolicyAccessOrNotFoundWrapper policyID={policyID}>
<PaidPolicyAccessOrNotFoundWrapper policyID={policyID}>
<ScreenWrapper testID={WorkspaceNewTaxPage.displayName}>
<ScreenWrapper
testID={WorkspaceNewTaxPage.displayName}
includeSafeAreaPaddingBottom={false}
>
<View style={[styles.h100, styles.flex1, styles.justifyContentBetween]}>
<HeaderWithBackButton title={translate('workspace.taxes.addRate')} />
<FormProvider
Expand Down

0 comments on commit efd2a9b

Please sign in to comment.