diff --git a/client/src/containers/Drawers/BillDrawer/BillDrawerAlerts.js b/client/src/containers/Drawers/BillDrawer/BillDrawerAlerts.js
new file mode 100644
index 000000000..278671574
--- /dev/null
+++ b/client/src/containers/Drawers/BillDrawer/BillDrawerAlerts.js
@@ -0,0 +1,13 @@
+import React from 'react';
+import BillTransactionDeleteAlert from 'containers/Alerts/Bills/BillTransactionDeleteAlert';
+
+/**
+ * Bill drawer alert.
+ */
+export default function BillDrawerAlerts() {
+ return (
+
+
+
+ );
+}
diff --git a/client/src/containers/Drawers/BillDrawer/BillDrawerContent.js b/client/src/containers/Drawers/BillDrawer/BillDrawerContent.js
index 0e93746a5..ec1579009 100644
--- a/client/src/containers/Drawers/BillDrawer/BillDrawerContent.js
+++ b/client/src/containers/Drawers/BillDrawer/BillDrawerContent.js
@@ -1,16 +1,19 @@
import React from 'react';
import { BillDrawerProvider } from './BillDrawerProvider';
import BillDrawerDetails from './BillDrawerDetails';
+import BillDrawerAlerts from './BillDrawerAlerts';
+
/**
* Bill drawer content.
*/
export default function BillDrawerContent({
// #ownProp
- billId,
+ bill,
}) {
return (
-
+
+
);
}
diff --git a/client/src/containers/Drawers/BillDrawer/BillDrawerProvider.js b/client/src/containers/Drawers/BillDrawer/BillDrawerProvider.js
index 689508ad0..5bd4a8246 100644
--- a/client/src/containers/Drawers/BillDrawer/BillDrawerProvider.js
+++ b/client/src/containers/Drawers/BillDrawer/BillDrawerProvider.js
@@ -1,6 +1,7 @@
import React from 'react';
import intl from 'react-intl-universal';
import { DrawerHeaderContent, DashboardInsider } from 'components';
+import { useBillLocatedLandedCost } from 'hooks/query';
const BillDrawerContext = React.createContext();
@@ -8,10 +9,18 @@ const BillDrawerContext = React.createContext();
* Bill drawer provider.
*/
function BillDrawerProvider({ billId, ...props }) {
+ // Handle fetch bill located landed cost transaction.
+ const { isLoading: isLandedCostLoading, data: transactions } =
+ useBillLocatedLandedCost(billId, {
+ enabled: !!billId,
+ });
+
//provider.
- const provider = {};
+ const provider = {
+ transactions,
+ };
return (
-
+