diff --git a/packages/apps/purchase/src/components/templates/RequestCreationButton/RequestCreationButton.tsx b/packages/apps/purchase/src/components/templates/RequestCreationButton/RequestCreationButton.tsx index 9c843054d4..0daeff796a 100644 --- a/packages/apps/purchase/src/components/templates/RequestCreationButton/RequestCreationButton.tsx +++ b/packages/apps/purchase/src/components/templates/RequestCreationButton/RequestCreationButton.tsx @@ -18,14 +18,8 @@ import React from 'react'; import {StyleSheet, View} from 'react-native'; -import { - useDispatch, - useNavigation, - useSelector, - useTranslator, -} from '@axelor/aos-mobile-core'; +import {useNavigation, useTranslator} from '@axelor/aos-mobile-core'; import {Button, useThemeColor} from '@axelor/aos-mobile-ui'; -//import {createInternalMove} from '../../../../features/internalMoveSlice'; import {RequestCreation} from '../../../types'; interface RequestCreationButtonProps { @@ -48,9 +42,6 @@ const RequestCreationButton = ({ const Colors = useThemeColor(); const I18n = useTranslator(); const navigation = useNavigation(); - const dispatch = useDispatch(); - - const {user} = useSelector((state: any) => state.user); const handleFinishPress = () => { if (step === RequestCreation.step.validateLine) { diff --git a/packages/apps/purchase/src/components/templates/RequestCreationQuantityCard/RequestCreationQuantityCard.tsx b/packages/apps/purchase/src/components/templates/RequestCreationQuantityCard/RequestCreationQuantityCard.tsx index 20c3ad6f7b..74557d4cb5 100644 --- a/packages/apps/purchase/src/components/templates/RequestCreationQuantityCard/RequestCreationQuantityCard.tsx +++ b/packages/apps/purchase/src/components/templates/RequestCreationQuantityCard/RequestCreationQuantityCard.tsx @@ -18,12 +18,7 @@ import React from 'react'; import {useTranslator} from '@axelor/aos-mobile-core'; -import { - checkNullString, - QuantityCard, - Text, - useDigitFormat, -} from '@axelor/aos-mobile-ui'; +import {checkNullString, QuantityCard, Text} from '@axelor/aos-mobile-ui'; interface RequestCreationQuantityCardProps { movedQty: number; @@ -41,15 +36,12 @@ const RequestCreationQuantityCard = ({ cancelMove, productName, trackingNumber, - availableQty, - productUnit, }: RequestCreationQuantityCardProps) => { const I18n = useTranslator(); - const formatNumber = useDigitFormat(); return ( { [lines, newLine], ); - console.log(unit); - return ( { const styles = StyleSheet.create({ container: { alignItems: 'center', - //height: '100%', }, rule: { marginVertical: 15,