This commit is contained in:
parwez-zafar 2023-12-19 16:39:04 +05:30
parent d8b6830bce
commit a7d0035e62
2 changed files with 8 additions and 8 deletions

View File

@ -83,7 +83,7 @@ const Categories = () => {
useEffect(() => {
getCategories();
}, [token, category]);
}, [token]);
const handleEditClick = (_id, categoryName, categoryImage) => {
setOpen(true);
@ -323,9 +323,9 @@ const Categories = () => {
textTransform: "capitalize",
}}
onClick={handleOpen}
// onClick={() => {
// navigate("/testimonial/new", { replace: true });
// }}
// onClick={() => {
// navigate("/testimonial/new", { replace: true });
// }}
>
Add New Category
</Button>
@ -363,7 +363,7 @@ const Categories = () => {
onChange={(e) =>
setCategoryName(
e.target.value.charAt(0).toUpperCase() +
e.target.value.slice(1)
e.target.value.slice(1)
)
}
/>
@ -486,7 +486,7 @@ const Categories = () => {
p={2}
display={"flex"}
justifyContent={"right"}
// width={"500px"}
// width={"500px"}
>
{!edit && (
<button
@ -630,7 +630,7 @@ const Categories = () => {
width="40"
alt=""
/>
<h5>{} </h5>
<h5>{ } </h5>
</td>
<td>
<h5>{item.categoryName} </h5>

View File

@ -130,7 +130,7 @@ const Design = () => {
useEffect(() => {
getDesigns();
}, [token, design]);
}, [token]);
const handleEditClick = (
_id,