diff --git a/src/Components/Banner/AddBanner.jsx b/src/Components/Banner/AddBanner.jsx
index e33f46c..fee195e 100644
--- a/src/Components/Banner/AddBanner.jsx
+++ b/src/Components/Banner/AddBanner.jsx
@@ -206,7 +206,20 @@ const AddBanner = ({ createApi, navigateLink, title, center }) => {
placeholder="Heading"
className="web-text-medium"
size="sm"
+ errorBorderColor="crimson"
+ isInvalid={formData?.heading?.length > 50}
+ // maxLength={51}
/>
+ 50
+ ? "red"
+ : "gray.500"
+ }
+ className="web-text-small"
+ >
+ If heading crosses 50 characters it will cause problem in alignment on website.you have entered {formData?.heading?.length} characters
+
{errors.name && (
{errors.heading.message}
@@ -218,12 +231,25 @@ const AddBanner = ({ createApi, navigateLink, title, center }) => {
Sub Heading
- 230}
/>
+
+ 230
+ ? "red"
+ : "gray.500"
+ }
+ className="web-text-small"
+ >
+ If sub heading crosses 50 characters it will cause problem in alignment on website.you have entered {formData?.sub_heading.length} characters
+
{errors.sub_heading && (
{" "}
@@ -241,10 +267,18 @@ const AddBanner = ({ createApi, navigateLink, title, center }) => {
placeholder="Button title"
className="web-text-medium"
size="sm"
- maxLength={90}
+ errorBorderColor="crimson"
+ isInvalid={formData?.CTO_button_title.length > 30}
/>
-
- Maximum characters must be 100 characters.
+ 30
+ ? "red"
+ : "gray.500"
+ }
+ className="web-text-small"
+ >
+ If Button title crosses 50 characters it will cause problem in alignment on website.you have entered {formData?.CTO_button_title.length} characters
{errors.CTO_button_title && (
diff --git a/src/Components/Banner/BannerEdit.jsx b/src/Components/Banner/BannerEdit.jsx
index af0c85e..8b353c9 100644
--- a/src/Components/Banner/BannerEdit.jsx
+++ b/src/Components/Banner/BannerEdit.jsx
@@ -45,7 +45,11 @@ const BannerEdit = ({isLoading, data, updateBanner, navigateTo, refetch, center}
const [isLoadingEdit, setIsLoadingEdit] = useState(false);
const [selectedImage, setSelectedImage] = useState();
const [largeImageData, setLargeImageData] = useState(null);
- // const [formData, setFormData] = useState()
+ const [title, setTitle] = useState("");
+
+ const handleTitleChange = (e) => {
+ setTitle(e.target.value);
+ };
const {
@@ -264,7 +268,20 @@ const BannerEdit = ({isLoading, data, updateBanner, navigateTo, refetch, center}
name="heading"
type="text"
id="heading"
+ errorBorderColor="crimson"
+ isInvalid={formData?.heading.length > 50}
+ // maxLength={51}
/>
+ 50
+ ? "red"
+ : "gray.500"
+ }
+ className="web-text-small"
+ >
+ If heading crosses 50 characters it will cause problem in alignment on website.you have entered {formData?.heading.length} characters
+
{errors.name && (
{" "}
@@ -284,7 +301,20 @@ const BannerEdit = ({isLoading, data, updateBanner, navigateTo, refetch, center}
size="sm"
id="sub_heading"
name="sub_heading"
+ errorBorderColor="crimson"
+ isInvalid={formData?.sub_heading.length > 230}
/>
+
+ 230
+ ? "red"
+ : "gray.500"
+ }
+ className="web-text-small"
+ >
+ If sub heading crosses 50 characters it will cause problem in alignment on website.you have entered {formData?.sub_heading.length} characters
+
{errors.sub_heading && (
{" "}
@@ -299,15 +329,24 @@ const BannerEdit = ({isLoading, data, updateBanner, navigateTo, refetch, center}
30}
/>
-
- Maximum characters must be 100 characters.
+ 30
+ ? "red"
+ : "gray.500"
+ }
+ className="web-text-small"
+ >
+ If sub heading crosses 50 characters it will cause problem in alignment on website.you have entered {formData?.CTO_button_title.length} characters
{errors.CTO_button_title && (
diff --git a/src/Layout/DefaultLayout.jsx b/src/Layout/DefaultLayout.jsx
index 9821b5f..54459d4 100644
--- a/src/Layout/DefaultLayout.jsx
+++ b/src/Layout/DefaultLayout.jsx
@@ -128,7 +128,7 @@ const DashboardLayout = () => {
// onMouseOver={() => setIsDrawerOpen(true)}
// onMouseLeave={() => setIsDrawerOpen(false)}
style={{
- width: isDrawerOpen || openDrawerClick ? 225 : 66,
+ width: isDrawerOpen || openDrawerClick ? 225 : 78,
transition: "width 0.3s ease-in-out", // Smooth transition for width change
overflow: "hidden", // Hide overflow to prevent content overflow during transition
// backgroundColor:"#FAFBFC"
@@ -147,7 +147,7 @@ const DashboardLayout = () => {
) : (
{
{nav.map(({ title, path, Icon }, index) => (
+ key={index} className=" mb-1 w-100 d-flex ">
{path ? (
{
{
const [createLearnBannerData] = useCreateHomeBannerMutation();
return (
{
className="web-text-medium"
size="sm"
/>
-
+ {/*
Please share proper linked in link here.
-
+ */}
{errors.summary && (
{" "}
@@ -386,11 +386,11 @@ const AddBlogsAndArticles = () => {