diff --git a/src/Components/Banner/BannerTable.jsx b/src/Components/Banner/BannerTable.jsx
index 2c35e12..dfaa308 100644
--- a/src/Components/Banner/BannerTable.jsx
+++ b/src/Components/Banner/BannerTable.jsx
@@ -38,8 +38,7 @@ const BannerCommunity = ({
title,
addLink,
viewLink,
- editLink
-
+ editLink,
}) => {
// ====================================================[Hooks]===================================================================
const toast = useToast();
@@ -57,8 +56,6 @@ const BannerCommunity = ({
// end: pageSize,
// });
-
-
// ====================================================[Functions]===================================================================
const handleDelete = async (bannerId, status) => {
if (status) {
@@ -67,7 +64,6 @@ const BannerCommunity = ({
),
});
-
}
try {
// Trigger the mutation
@@ -81,7 +77,10 @@ const BannerCommunity = ({
setDeleteAlert(false);
toast({
render: () => (
-
+
),
});
}
@@ -104,27 +103,25 @@ const BannerCommunity = ({
),
});
- }else{
-
- try {
- // Trigger the mutation
- await statusUpdateApi({ id })
- .then((response) => {
- if (response?.data?.statusCode === 201) {
- toast({
- render: () => ,
- });
- }
- })
- .catch((error) => {
- console.log(error);
- });
- } catch (error) {
- // Handle errors
- console.error("Error updating community status:", error);
+ } else {
+ try {
+ // Trigger the mutation
+ await statusUpdateApi({ id })
+ .then((response) => {
+ if (response?.data?.statusCode === 201) {
+ toast({
+ render: () => ,
+ });
+ }
+ })
+ .catch((error) => {
+ console.log(error);
+ });
+ } catch (error) {
+ // Handle errors
+ console.error("Error updating community status:", error);
+ }
}
- }
-
};
// ====================================================[Table Filter]================================================================
@@ -238,7 +235,7 @@ const BannerCommunity = ({
onClick={() => {
setActionId(item.id);
setDeleteAlert(true);
- setActionStatus(item.status)
+ setActionStatus(item.status);
}}
className="web-text-medium"
>
diff --git a/src/Pages/Videos/EditVideos.jsx b/src/Pages/Videos/EditVideos.jsx
index e490e5e..69f670f 100644
--- a/src/Pages/Videos/EditVideos.jsx
+++ b/src/Pages/Videos/EditVideos.jsx
@@ -273,7 +273,7 @@ const EditVideos = () => {
maxLength={90}
/>
- Maximum characters must be 100 characters.
+ Pls mention Hrs/mins/secs in the field.
{errors.duration && (
@@ -296,7 +296,7 @@ const EditVideos = () => {
maxLength={90}
/>
- Maximum characters must be 100 characters.
+ Please enter the embedded youtube Url.
{errors.embeddedCode && (