Skip to content

Commit

Permalink
refactor: space import and component name
Browse files Browse the repository at this point in the history
  • Loading branch information
vhu-axelor committed Dec 13, 2024
1 parent 10c9402 commit 0b471b8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,10 @@

import React from 'react';
import {View, StyleSheet} from 'react-native';

import {Button, useThemeColor} from '@axelor/aos-mobile-ui';
import {useSelector, useTranslator, useTypes} from '@axelor/aos-mobile-core';

const RequestValidationButton = ({}) => {
const RequestButtons = ({}) => {
const Colors = useThemeColor();
const I18n = useTranslator();
const {PurchaseRequest} = useTypes();
Expand Down Expand Up @@ -59,4 +58,4 @@ const styles = StyleSheet.create({
},
});

export default RequestValidationButton;
export default RequestButtons;
2 changes: 1 addition & 1 deletion packages/apps/purchase/src/components/atoms/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@

export {default as DropdownRequestCharacteristics} from './DropdownRequestCharacteristics/DropdownRequestCharacteristics';
export {default as PurchaseSeeLinesButton} from './PurchaseSeeLinesButton/PurchaseSeeLinesButton';
export {default as RequestButtons} from './RequestButtons/RequestButtons';
export {default as RequestCard} from './RequestCard/RequestCard';
export {default as RequestHeader} from './RequestHeader/RequestHeader';
export {default as RequestValidationButton} from './RequestValidationButton/RequestValidationButton';
4 changes: 2 additions & 2 deletions packages/apps/purchase/src/screens/RequestDetailsScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ import {useDispatch, useSelector, useTranslator} from '@axelor/aos-mobile-core';
import {getPurchaseRequest} from '../features/purchaseRequestSlice';
import {
PurchaseSeeLinesButton,
RequestButtons,
RequestDropdownCards,
RequestHeader,
RequestValidationButton,
} from '../components';
import {searchPurchaseRequestLine} from '../features/purchaseRequestLineSlice';
import {StyleSheet} from 'react-native';
Expand Down Expand Up @@ -60,7 +60,7 @@ const RequestDetailsScreen = ({route}) => {
}, [isDescription]);

return (
<Screen removeSpaceOnTop={true} fixedItems={<RequestValidationButton />}>
<Screen removeSpaceOnTop={true} fixedItems={<RequestButtons />}>
<HeaderContainer
fixedItems={<RequestHeader />}
expandableFilter={false}
Expand Down

0 comments on commit 0b471b8

Please sign in to comment.