diff --git a/src/components/Blogs/index.jsx b/src/components/Blogs/index.jsx index 97ec336..05c1499 100644 --- a/src/components/Blogs/index.jsx +++ b/src/components/Blogs/index.jsx @@ -7,6 +7,7 @@ import Banner from "../Blog/Banner"; import Footer from "../Footer/Footer"; import { store } from "../redux/store"; import { Provider } from "react-redux"; +import style from "./index.module.css"; const Index = () => { window.scrollTo({ top: 0, behavior: "instant" }); const [data, setData] = useState([]); @@ -18,7 +19,7 @@ const Index = () => { .then((result) => { result.json().then((res) => { setData(res.data.reverse()); - }); + }); }) .catch((error) => { // toast.error("Could not process data, please try again later!"); @@ -28,31 +29,26 @@ const Index = () => { return ( <> - - -

- Trending Blogs -

- - {newData.map((Blog) => ( - - - - ))} - -
-