Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions app/components/newscarousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Slider from "react-slick";
import "slick-carousel/slick/slick.css";
import "slick-carousel/slick/slick-theme.css";

const PrevArrow = ({ currentSlide, slideCount, ...props }) => {
const PrevArrow = ({ currentSlide, slideCount,onClick, ...props }) => {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
Expand All @@ -12,6 +12,7 @@ const PrevArrow = ({ currentSlide, slideCount, ...props }) => {
fill="#000"
className="bi bi-arrow-left-short align-self-center"
viewBox="0 0 16 16"
onClick={onClick}
>
<path
fillRule="evenodd"
Expand All @@ -21,7 +22,7 @@ const PrevArrow = ({ currentSlide, slideCount, ...props }) => {
);
};

const NextArrow = ({ currentSlide, slideCount, ...props }) => {
const NextArrow = ({ currentSlide, slideCount,onClick, ...props }) => {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
Expand All @@ -30,6 +31,7 @@ const NextArrow = ({ currentSlide, slideCount, ...props }) => {
fill="#000"
className="bi bi-arrow-left-short align-self-center"
viewBox="0 0 16 16"
onClick={onClick}
>
<path
fillRule="evenodd"
Expand Down