Skip to content

Commit

Permalink
backoffice: DocumentItems: Update DocumentItems to be overridable
Browse files Browse the repository at this point in the history
  • Loading branch information
sakshamarora1 authored and kpsherva committed Jun 14, 2024
1 parent 9add571 commit 5a40631
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,6 @@ export { SectionInstallation } from '@pages/frontsite/Home/Sections/SectionInsta
export { PaymentInformation } from '@components/backoffice/PaymentInformation';
export { OrderLine } from '@pages/backoffice/Acquisition/Order/OrderDetails/OrderLines';
export { formatPrice } from '@api/utils';
export { Loader } from '@components/Loader';
export { Error } from '@components/Error';
export { SeeAllButton } from '@components/backoffice/buttons/SeeAllButton';
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ import { itemApi } from '@api/items';
import { BackOfficeRoutes } from '@routes/urls';
import { SeeAllButton } from '@components/backoffice/buttons/SeeAllButton';
import _get from 'lodash/get';
import Overridable from 'react-overridable';

export default class DocumentItems extends Component {
class DocumentItems extends Component {
componentDidMount() {
const { fetchDocumentItems, documentDetails } = this.props;
fetchDocumentItems(documentDetails.pid);
Expand Down Expand Up @@ -111,3 +112,8 @@ DocumentItems.defaultProps = {
isLoading: false,
error: null,
};

export default Overridable.component(
'DocumentDetails.DocumentItems',
DocumentItems
);

0 comments on commit 5a40631

Please sign in to comment.