hds-web 1.8.2 → 1.8.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hds-web",
3
- "version": "1.8.2",
3
+ "version": "1.8.4",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
@@ -38,12 +38,6 @@ export default function HomePageCarousel(props) {
38
38
 
39
39
  const nextCard = () => {
40
40
  let scrollByAmount = 1;
41
- if (window.innerWidth > 800) {
42
- scrollByAmount = 2;
43
- }
44
- if (window.innerWidth > 1140) {
45
- scrollByAmount = 3;
46
- }
47
41
 
48
42
  if (currentCard < totalCards - scrollByAmount) {
49
43
  setCurrentCard(currentCard + scrollByAmount);
@@ -63,12 +57,7 @@ export default function HomePageCarousel(props) {
63
57
 
64
58
  const previousCard = () => {
65
59
  let scrollByAmount = 1;
66
- if (window.innerWidth > 800) {
67
- scrollByAmount = 2;
68
- }
69
- if (window.innerWidth > 1140) {
70
- scrollByAmount = 3;
71
- }
60
+
72
61
 
73
62
  if (currentCard > 0) {
74
63
  setCurrentCard(currentCard - scrollByAmount);
package/src/index.css CHANGED
@@ -1,4 +1,4 @@
1
- @import url('https://fonts.googleapis.com/css2?family=Petrona:ital,wght@1,300&display=swap');
1
+ /* @import url('https://fonts.googleapis.com/css2?family=Petrona:ital,wght@1,300&display=swap'); */
2
2
  @tailwind base;
3
3
  @tailwind components;
4
4
  @tailwind utilities;