gatsby-core-theme 42.0.22 → 42.0.23

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,10 @@
1
+ ## [42.0.23](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v42.0.22...v42.0.23) (2025-02-26)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * issue with authorbox missing link ([4d0d0f0](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/4d0d0f095a8167276a629be404d9ff26f545fcab))
7
+
1
8
  ## [42.0.22](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v42.0.21...v42.0.22) (2025-02-25)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-core-theme",
3
- "version": "42.0.22",
3
+ "version": "42.0.23",
4
4
  "description": "Gatsby Theme NPM Package",
5
5
  "author": "",
6
6
  "license": "ISC",
@@ -1,3 +1,4 @@
1
+ /* eslint-disable react-hooks/rules-of-hooks */
1
2
  import React from 'react';
2
3
  import PropTypes from 'prop-types';
3
4
  import { imagePrettyUrl, getAltText } from '~helpers/getters';
@@ -29,10 +30,18 @@ export default function AuthorDetails({
29
30
  />
30
31
  )}
31
32
  <div className={styles.information || ''}>
32
- <Link to={author?.profile_page_path} className={`${styles.name || ''} author-gtm`}>
33
- <span>{author?.name}</span>
34
- <FactCheckIcon width={verifiedIconWidth} height={verifiedIconHeight} color="#457BF9" />
35
- </Link>
33
+ {author?.profile_page_path ? (
34
+ <Link to={author?.profile_page_path} className={`${styles.name || ''} author-gtm`}>
35
+ <span>{author?.name}</span>
36
+ <FactCheckIcon width={verifiedIconWidth} height={verifiedIconHeight} color="#457BF9" />
37
+ </Link>
38
+ ) : (
39
+ <div to={author?.profile_page_path} className={`${styles.name || ''} author-gtm`}>
40
+ <span>{author?.name}</span>
41
+ <FactCheckIcon width={verifiedIconWidth} height={verifiedIconHeight} color="#457BF9" />
42
+ </div>
43
+ )}
44
+
36
45
  <div className={styles.ribbonAndExpert}>
37
46
  {author?.author_title && <p className={styles.title || ''}>{author?.author_title}</p>}
38
47
  {author?.ribbon_label && ribbon && (