diff --git a/src/_nav.js b/src/_nav.js
index a27b8d9..db26ed3 100644
--- a/src/_nav.js
+++ b/src/_nav.js
@@ -307,13 +307,13 @@ const _nav = [
to: "/logo",
group: "Settings",
},
- {
- component: CNavItem,
- name: "Mobile App",
- icon: ,
- to: "/mobile-app",
- group: "Settings",
- },
+ // {
+ // component: CNavItem,
+ // name: "Mobile App",
+ // icon: ,
+ // to: "/mobile-app",
+ // group: "Settings",
+ // },
// {
// component: CNavItem,
// name: "Copyright Message",
diff --git a/src/views/ProductManual/ProductManual.js b/src/views/ProductManual/ProductManual.js
index d4c226d..6ec960f 100644
--- a/src/views/ProductManual/ProductManual.js
+++ b/src/views/ProductManual/ProductManual.js
@@ -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");
}
@@ -349,7 +343,7 @@ const ProductManual = () => {
p={2}
display={"flex"}
justifyContent={"right"}
- // width={"500px"}
+ // width={"500px"}
>
{!edit && (