Skip to content

Commit

Permalink
Fixes carousel links (#199)
Browse files Browse the repository at this point in the history
closes #198
  • Loading branch information
vasucp1207 authored Nov 17, 2022
1 parent 170c941 commit 5efcf37
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/components/newscarousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'slick-carousel/slick/slick.css';
import 'slick-carousel/slick/slick-theme.css';
import Image from "next/image";

const PrevArrow = ({ currentSlide, slideCount, ...props }) => {
const PrevArrow = ({ currentSlide, slideCount, onClick, ...props }) => {
return (
<svg
xmlns='http://www.w3.org/2000/svg'
Expand All @@ -13,6 +13,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 @@ -22,7 +23,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 @@ -31,6 +32,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

0 comments on commit 5efcf37

Please sign in to comment.