Skip to content

Commit bae845e

Browse files
refactoring
1 parent 4943017 commit bae845e

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

CHANGELOG.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
2525
- Header.js component
2626
- reCAPTCHA
2727
- useIntersect Hook, Reveal container for scrolling using intersection API
28+
- A new swipable feature on CardColumns.js
2829

2930
### Fixed
3031

@@ -38,6 +39,4 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
3839
- normalized buttons' and links' styling
3940
- updated `package.json` commands for macOs
4041

41-
### changed
4242

43-
- Prompt cards are now swipable. (Home page)

components/CardsColumns.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
import { Swiper, SwiperSlide } from 'swiper/react';
2+
import 'swiper/css';
13
import Card from './Card';
24
import Container from './Container';
3-
import { Swiper, SwiperSlide } from 'swiper/react';
45
import styles from '../styles/CardsColumns.module.scss';
5-
import 'swiper/css';
66

77
export default function CardsColumns({
88
images,
@@ -13,7 +13,6 @@ export default function CardsColumns({
1313
linkText,
1414
}) {
1515
return (
16-
<>
1716
<Container>
1817
<Swiper
1918
mousewheel={true}
@@ -53,6 +52,5 @@ export default function CardsColumns({
5352

5453
</Swiper>
5554
</Container>
56-
</>
5755
);
5856
}

0 commit comments

Comments
 (0)