message
This commit is contained in:
parent
d8b6830bce
commit
a7d0035e62
@ -83,7 +83,7 @@ const Categories = () => {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
getCategories();
|
getCategories();
|
||||||
}, [token, category]);
|
}, [token]);
|
||||||
|
|
||||||
const handleEditClick = (_id, categoryName, categoryImage) => {
|
const handleEditClick = (_id, categoryName, categoryImage) => {
|
||||||
setOpen(true);
|
setOpen(true);
|
||||||
@ -323,9 +323,9 @@ const Categories = () => {
|
|||||||
textTransform: "capitalize",
|
textTransform: "capitalize",
|
||||||
}}
|
}}
|
||||||
onClick={handleOpen}
|
onClick={handleOpen}
|
||||||
// onClick={() => {
|
// onClick={() => {
|
||||||
// navigate("/testimonial/new", { replace: true });
|
// navigate("/testimonial/new", { replace: true });
|
||||||
// }}
|
// }}
|
||||||
>
|
>
|
||||||
Add New Category
|
Add New Category
|
||||||
</Button>
|
</Button>
|
||||||
@ -363,7 +363,7 @@ const Categories = () => {
|
|||||||
onChange={(e) =>
|
onChange={(e) =>
|
||||||
setCategoryName(
|
setCategoryName(
|
||||||
e.target.value.charAt(0).toUpperCase() +
|
e.target.value.charAt(0).toUpperCase() +
|
||||||
e.target.value.slice(1)
|
e.target.value.slice(1)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
@ -486,7 +486,7 @@ const Categories = () => {
|
|||||||
p={2}
|
p={2}
|
||||||
display={"flex"}
|
display={"flex"}
|
||||||
justifyContent={"right"}
|
justifyContent={"right"}
|
||||||
// width={"500px"}
|
// width={"500px"}
|
||||||
>
|
>
|
||||||
{!edit && (
|
{!edit && (
|
||||||
<button
|
<button
|
||||||
@ -630,7 +630,7 @@ const Categories = () => {
|
|||||||
width="40"
|
width="40"
|
||||||
alt=""
|
alt=""
|
||||||
/>
|
/>
|
||||||
<h5>{} </h5>
|
<h5>{ } </h5>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<h5>{item.categoryName} </h5>
|
<h5>{item.categoryName} </h5>
|
||||||
|
@ -130,7 +130,7 @@ const Design = () => {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
getDesigns();
|
getDesigns();
|
||||||
}, [token, design]);
|
}, [token]);
|
||||||
|
|
||||||
const handleEditClick = (
|
const handleEditClick = (
|
||||||
_id,
|
_id,
|
||||||
|
Loading…
Reference in New Issue
Block a user