From 8417677c9c427996d1eb16ba637b44e27cb8d912 Mon Sep 17 00:00:00 2001 From: rockyeverlast Date: Fri, 7 Jun 2024 12:43:31 +0530 Subject: [PATCH] Place holder text updated --- src/Components/Banner/BannerTable.jsx | 61 +++++++++++++++------------ src/Pages/Videos/EditVideos.jsx | 4 +- 2 files changed, 35 insertions(+), 30 deletions(-) diff --git a/src/Components/Banner/BannerTable.jsx b/src/Components/Banner/BannerTable.jsx index 1185d0f..f47a68a 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]================================================================ @@ -198,7 +195,15 @@ const BannerCommunity = ({ ), - "Button title": item?.CTO_button_title, + + "Button title": ( + + + {item?.CTO_button_title} + + + ), + Active: ( { 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 && (