Skip to content

Commit

Permalink
refactor: improve code
Browse files Browse the repository at this point in the history
  • Loading branch information
vhu-axelor committed Dec 18, 2024
1 parent 377ef49 commit e169751
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ const RequestCreationButtons = ({
title={I18n.t('Base_Finish')}
iconName="check-lg"
width={isValidateLineStep ? '45%' : '90%'}
disabled={isValidateLineStep && !unit}
onPress={handleFinishPress}
/>
</View>
Expand All @@ -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);
}}
/>
<Button
title={I18n.t('Base_Realize')}
iconName="check"
iconName="check-lg"
width="45%"
onPress={handleRealizePress}
/>
Expand Down

0 comments on commit e169751

Please sign in to comment.