bug fixed
This commit is contained in:
parent
729d387db3
commit
d18abb7c72
14
src/_nav.js
14
src/_nav.js
@ -307,13 +307,13 @@ const _nav = [
|
||||
to: "/logo",
|
||||
group: "Settings",
|
||||
},
|
||||
{
|
||||
component: CNavItem,
|
||||
name: "Mobile App",
|
||||
icon: <CIcon icon={cilFeaturedPlaylist} customClassName="nav-icon" />,
|
||||
to: "/mobile-app",
|
||||
group: "Settings",
|
||||
},
|
||||
// {
|
||||
// component: CNavItem,
|
||||
// name: "Mobile App",
|
||||
// icon: <CIcon icon={cilFeaturedPlaylist} customClassName="nav-icon" />,
|
||||
// to: "/mobile-app",
|
||||
// group: "Settings",
|
||||
// },
|
||||
// {
|
||||
// component: CNavItem,
|
||||
// name: "Copyright Message",
|
||||
|
@ -2,6 +2,7 @@ import React, { useState, useEffect, useCallback, useRef } from "react";
|
||||
import axios from "axios";
|
||||
import { Link } from "react-router-dom";
|
||||
import { isAutheticated } from "src/auth";
|
||||
import { toast } from "react-hot-toast";
|
||||
import {
|
||||
Button,
|
||||
Box,
|
||||
@ -124,8 +125,9 @@ const ProductManual = () => {
|
||||
},
|
||||
});
|
||||
handleClose();
|
||||
swal("Success", "New product manual added successfully!", "success");
|
||||
getProductManuals();
|
||||
setSuccess((prev) => !prev);
|
||||
toast.success("New product manual added successfully!");
|
||||
// getProductManuals();
|
||||
} catch (error) {
|
||||
swal("Error", "Failed to add product manual", "error");
|
||||
} finally {
|
||||
@ -155,12 +157,8 @@ const ProductManual = () => {
|
||||
);
|
||||
handleClose();
|
||||
setSuccess((prev) => !prev);
|
||||
swal(
|
||||
"Success",
|
||||
"The product manual was updated successfully!",
|
||||
"success"
|
||||
);
|
||||
getProductManuals();
|
||||
toast.success("The product manual was updated successfully!");
|
||||
// getProductManuals();
|
||||
} catch (err) {
|
||||
swal("Error", "Failed to update product manual", "error");
|
||||
} finally {
|
||||
@ -183,12 +181,8 @@ const ProductManual = () => {
|
||||
headers: { Authorization: `Bearer ${token}` },
|
||||
});
|
||||
setSuccess((prev) => !prev);
|
||||
swal(
|
||||
"Success",
|
||||
"The product manual was deleted successfully!",
|
||||
"success"
|
||||
);
|
||||
getProductManuals();
|
||||
toast.success("The product manual was deleted successfully!");
|
||||
// getProductManuals();
|
||||
} catch (err) {
|
||||
swal("Error", "Failed to delete product manual", "error");
|
||||
}
|
||||
|
@ -218,13 +218,13 @@ const OpeningInventoryReports = () => {
|
||||
Brand Name
|
||||
</th>
|
||||
<th className="text-start" style={{ width: "15%" }}>
|
||||
Total At PD & RD
|
||||
Total At PDs & Retailers
|
||||
</th>
|
||||
<th className="text-start" style={{ width: "10%" }}>
|
||||
All PDs
|
||||
</th>
|
||||
<th className="text-start" style={{ width: "10%" }}>
|
||||
All RDs
|
||||
All Retailers
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
@ -218,13 +218,13 @@ const StockReports = () => {
|
||||
Brand Name
|
||||
</th>
|
||||
<th className="text-start" style={{ width: "15%" }}>
|
||||
Total At PD & RD
|
||||
Total At PDs & Retailers
|
||||
</th>
|
||||
<th className="text-start" style={{ width: "10%" }}>
|
||||
All PDs
|
||||
</th>
|
||||
<th className="text-start" style={{ width: "10%" }}>
|
||||
All RDs
|
||||
All Retailers
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
@ -154,7 +154,7 @@ const WidgetsDropdown = ({
|
||||
className="mb-4"
|
||||
color="primary"
|
||||
value={<>{retaildistributor}</>}
|
||||
title="Total Reatailers"
|
||||
title="Total Retailers"
|
||||
/>
|
||||
</CCol>
|
||||
{/* </CRow> */}
|
||||
|
Loading…
Reference in New Issue
Block a user