diff --git a/src/views/Blog/index.js b/src/views/Blog/index.js index a4c8eae..0e822be 100644 --- a/src/views/Blog/index.js +++ b/src/views/Blog/index.js @@ -25,7 +25,6 @@ export const Blog = ({ activeBlog, }) => { let { id } = useParams(); - console.log(id); // let id = location.getId(); useEffect(() => { @@ -45,6 +44,40 @@ export const Blog = ({ window.scrollTo(0, 0); }, [id]); + const suggestionSlider = React.useCallback(() => { + return ( + e.stopPropagation()} + /> + } + leftArrow={ + e.stopPropagation()} + /> + } + > + {blogs + ?.filter((blog) => Number(blog?.id) !== Number(id)) + .map((blog, index) => ( + + ))} + + ); + }, [blogs, id]); + return (
@@ -140,37 +173,7 @@ export const Blog = ({
) : (
- {blogs.length > 0 && ( - e.stopPropagation()} - /> - } - leftArrow={ - e.stopPropagation()} - /> - } - > - {blogs - .filter((e) => e.id != blog.id) - .map((blog, index) => ( - - ))} - - )} +
)}