diff --git a/src/Components/BannerStack.jsx b/src/Components/BannerStack.jsx index a799996..0ad50d2 100644 --- a/src/Components/BannerStack.jsx +++ b/src/Components/BannerStack.jsx @@ -12,7 +12,7 @@ const BannerStack = ({ viewBannerLink, }) => { return ( - + {bannerIsLoading ? Array.from({ length: 4 }).map((_, index) => ( diff --git a/src/Components/Header.jsx b/src/Components/Header.jsx index 5fe7522..1f889b6 100644 --- a/src/Components/Header.jsx +++ b/src/Components/Header.jsx @@ -22,6 +22,12 @@ const Header = ({ link, btnTitle, title }) => { {title} + + + {/* + {title} + */} + {btnTitle && link && ( + + + + + - + + { - if (!value) return true; - const fileSizeInBytes = value.size; - const fileSizeInMB = fileSizeInBytes / (1024 * 1024); - return fileSizeInMB >= 10; - }).required("Banner image is required"), + banner_image: Yup.mixed().required("Banner image is required"), }); export const editNews = Yup.object().shape({ @@ -62,5 +57,14 @@ export const editNews = Yup.object().shape({ release_date: Yup.date(), meta_description: Yup.string(), content: Yup.string(), - banner_image: Yup.mixed() + banner_image: Yup.mixed().required("Banner image is required"), }); + + + +// test("fileSize", "Image must be at least 2MB", (value) => { +// if (!value) return true; +// const fileSizeInBytes = value.size; +// const fileSizeInMB = fileSizeInBytes / (1024 * 1024); +// return fileSizeInMB >= 10; +// }) \ No newline at end of file diff --git a/src/assets/Ellipse.png b/src/assets/Ellipse.png new file mode 100644 index 0000000..f2db4bf Binary files /dev/null and b/src/assets/Ellipse.png differ