diff --git a/packages/apps/purchase/src/components/atoms/HorizontalRuleText/HorizontalRuleText.tsx b/packages/apps/purchase/src/components/atoms/HorizontalRuleText/HorizontalRuleText.tsx index 0e244b896..13af29325 100644 --- a/packages/apps/purchase/src/components/atoms/HorizontalRuleText/HorizontalRuleText.tsx +++ b/packages/apps/purchase/src/components/atoms/HorizontalRuleText/HorizontalRuleText.tsx @@ -18,7 +18,7 @@ import React from 'react'; import {View, StyleSheet} from 'react-native'; -import {HorizontalRule, useThemeColor, Text} from '@axelor/aos-mobile-ui'; +import {HorizontalRule, Text, useThemeColor} from '@axelor/aos-mobile-ui'; interface HorizontalRuleTextProps { text: string; diff --git a/packages/apps/purchase/src/components/templates/RequestCreationButtons/RequestCreationButtons.tsx b/packages/apps/purchase/src/components/templates/RequestCreationButtons/RequestCreationButtons.tsx index 3a45f2c59..dcbe288fd 100644 --- a/packages/apps/purchase/src/components/templates/RequestCreationButtons/RequestCreationButtons.tsx +++ b/packages/apps/purchase/src/components/templates/RequestCreationButtons/RequestCreationButtons.tsx @@ -78,6 +78,7 @@ const RequestCreationButtons = ({ title={I18n.t('Base_Finish')} iconName="check-lg" width={isValidateLineStep ? '45%' : '90%'} + disabled={isValidateLineStep && !unit} onPress={handleFinishPress} /> @@ -91,14 +92,14 @@ const RequestCreationButtons = ({ title={I18n.t('Base_Add')} iconName="arrow-left" color={Colors.progressColor} - width={unit ? '45%' : '90%'} + width={'45%'} onPress={() => { setStep(RequestCreation.step.addLine); }} />