diff --git a/packages/apps/purchase/src/components/atoms/HorizontalRuleText/HorizontalRuleText.tsx b/packages/apps/purchase/src/components/atoms/HorizontalRuleText/HorizontalRuleText.tsx index ea2f3a242..0e244b896 100644 --- a/packages/apps/purchase/src/components/atoms/HorizontalRuleText/HorizontalRuleText.tsx +++ b/packages/apps/purchase/src/components/atoms/HorizontalRuleText/HorizontalRuleText.tsx @@ -17,11 +17,11 @@ */ import React from 'react'; -import {View, StyleSheet, Text} from 'react-native'; -import {HorizontalRule, useThemeColor} from '@axelor/aos-mobile-ui'; +import {View, StyleSheet} from 'react-native'; +import {HorizontalRule, useThemeColor, Text} from '@axelor/aos-mobile-ui'; interface HorizontalRuleTextProps { - text?: string; + text: string; style?: any; textStyle?: any; } @@ -37,11 +37,9 @@ const HorizontalRuleText = ({ + fontSize={14} + textColor={Colors.secondaryColor.foreground} + style={textStyle}> {text} @@ -60,10 +58,6 @@ const styles = StyleSheet.create({ flex: 1, marginHorizontal: 10, }, - text: { - fontSize: 14, - textAlign: 'center', - }, }); export default HorizontalRuleText; diff --git a/packages/apps/purchase/src/components/templates/RequestCreationButton/RequestCreationButton.tsx b/packages/apps/purchase/src/components/templates/RequestCreationButton/RequestCreationButton.tsx index 5edd8c87c..84f39fdc6 100644 --- a/packages/apps/purchase/src/components/templates/RequestCreationButton/RequestCreationButton.tsx +++ b/packages/apps/purchase/src/components/templates/RequestCreationButton/RequestCreationButton.tsx @@ -18,7 +18,7 @@ import React from 'react'; import {StyleSheet, View} from 'react-native'; -import {useNavigation, useTranslator} from '@axelor/aos-mobile-core'; +import {useTranslator} from '@axelor/aos-mobile-core'; import {Button, useThemeColor} from '@axelor/aos-mobile-ui'; import {RequestCreation} from '../../../types'; @@ -43,7 +43,6 @@ const RequestCreationButton = ({ }: RequestCreationButtonProps) => { const Colors = useThemeColor(); const I18n = useTranslator(); - const navigation = useNavigation(); const handleFinishPress = () => { if (step === RequestCreation.step.validateLine) { @@ -52,9 +51,7 @@ const RequestCreationButton = ({ setStep(RequestCreation.step.finish); }; - const handleRealizePress = () => { - navigation.popToTop(); - }; + const handleRealizePress = () => {}; if ( (step === RequestCreation.step.addLine && lines.length >= 1) || @@ -65,7 +62,7 @@ const RequestCreationButton = ({ {step === RequestCreation.step.validateLine && (