gatsby-core-theme 2.0.4 → 2.0.5

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/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ ## [2.0.5](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v2.0.4...v2.0.5) (2021-12-22)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * spotlights component ([f6221a6](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/f6221a69e2941bba6d868af5e5c083a89f10a9ce))
7
+
8
+
9
+ * Merge branch 'master' of git.ilcd.rocks:team-floyd/themes/gatsby-themes ([7952c78](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/7952c78019d7220cca07b5516cb462ef620e6d38))
10
+
1
11
  ## [2.0.4](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v2.0.3...v2.0.4) (2021-12-22)
2
12
 
3
13
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-core-theme",
3
- "version": "2.0.4",
3
+ "version": "2.0.5",
4
4
  "description": "Gatsby Theme NPM Package",
5
5
  "main": "index.js",
6
6
  "GATSBY_RECAPTCHA_SITEKEY": "6LfoyvMUAAAAAO4nl_MQnqHb4XdHxEiu5cXgIqeB",
@@ -3,7 +3,7 @@
3
3
  import React from 'react';
4
4
  import PropTypes from 'prop-types';
5
5
  import { GrFormNextLink } from 'react-icons/gr';
6
-
6
+ import Button from '~atoms/button';
7
7
  import LazyImage from '~hooks/lazy-image';
8
8
  import keygen from '~helpers/keygen';
9
9
  import { imagePrettyUrl } from '~helpers/getters';
@@ -78,14 +78,16 @@ const Spotlights = ({ module }) => {
78
78
  ) : (
79
79
  <>
80
80
  {item.link.value && (
81
- <Link
81
+ <Button
82
+ btnText={item.link_text ? item.link_text : 'Read More'}
83
+ invertColors
84
+ isAnchorLink
85
+ isInternalLink={item.link.type !== 'external'}
86
+ targetBlank={item.link.type === 'external'}
82
87
  to={item.link.value}
83
- title={item.label}
84
- className={`${styles.readMore} spotlights-gtm`}
85
- >
86
- {item.link_text ? item.link_text : 'Read More'}
87
- <GrFormNextLink />
88
- </Link>
88
+ primaryColor={false}
89
+ gtmClass="spotlights-gtm btn-cta"
90
+ />
89
91
  )}
90
92
  </>
91
93
  )}