-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add new chevrons + improved swiper modules
- Loading branch information
Showing
6 changed files
with
15 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
src/ui/components/molecules/testimonialsSlider/TestimonialsSlider.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
...molecules/testimonialsSlider/components/testimonialsNavigation/TestimonialsNavigation.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
import React from 'react'; | ||
import 'src/ui/components/molecules/testimonialsSlider/components/testimonialsNavigation/testimonialsNavigation.css'; | ||
import './testimonialsNavigation.css'; | ||
import { useSwiper } from 'swiper/react'; | ||
import horizontalArrow from '@assets/images/svg/left-arrow.svg'; | ||
|
||
export const TestimonialsNavigation = () => { | ||
const swiper = useSwiper(); | ||
console.log('swiper', swiper); | ||
return ( | ||
<div className="testimonials__navigation flex column-nowrap"> | ||
<button className="testimonials__navigation__button --right clickable" onClick={() => swiper.slideNext()}> | ||
<img src={horizontalArrow.src} alt={'Next testimonial'} /> | ||
</button> | ||
<div className="testimonials__navigation flex row-nowrap"> | ||
<button className="testimonials__navigation__button --left clickable" onClick={() => swiper.slidePrev()}> | ||
<img src={horizontalArrow.src} alt={'Previous testimonial'} /> | ||
</button> | ||
<button className="testimonials__navigation__button --right clickable" onClick={() => swiper.slideNext()}> | ||
<img src={horizontalArrow.src} alt={'Next testimonial'} /> | ||
</button> | ||
</div> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters