gatsby-core-theme 11.0.5 → 11.0.6
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,15 @@
|
|
|
1
|
+
## [11.0.6](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v11.0.5...v11.0.6) (2022-09-02)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* update button and author-box ([3eec6da](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/3eec6da80b37568a47ead1a15ad1811612b10828))
|
|
7
|
+
* update button component ([60cd4d1](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/60cd4d1148517bdd4ef51cc265561b8137cfdcfa))
|
|
8
|
+
* update button component in order to accept props ([25cc1e3](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/25cc1e31df9e468be966e3b1a7414e84dc5bace3))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
* Merge branch 'tm-3024-contact-us' into 'master' ([46e0b23](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/commit/46e0b238e9c0c4da12a90c2dd072e6fc0fb039c7))
|
|
12
|
+
|
|
1
13
|
## [11.0.5](https://git.ilcd.rocks/team-floyd/themes/gatsby-themes/compare/v11.0.4...v11.0.5) (2022-08-31)
|
|
2
14
|
|
|
3
15
|
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@ import PropTypes from 'prop-types';
|
|
|
9
9
|
import { translate, imagePrettyUrl, getAltText } from '~helpers/getters';
|
|
10
10
|
import styles from './author-box.module.scss';
|
|
11
11
|
import LazyImage from '~hooks/lazy-image';
|
|
12
|
-
import
|
|
12
|
+
import Button from '~atoms/button';
|
|
13
13
|
import { Context } from '~context/TranslationsProvider';
|
|
14
14
|
|
|
15
15
|
export default function AuthorBox({ author, preElement = null }) {
|
|
@@ -94,13 +94,14 @@ export default function AuthorBox({ author, preElement = null }) {
|
|
|
94
94
|
/>
|
|
95
95
|
</div>
|
|
96
96
|
{author.profile_page_path && (
|
|
97
|
-
<
|
|
97
|
+
<Button
|
|
98
|
+
primaryColor={false}
|
|
98
99
|
to={author.profile_page_path}
|
|
99
|
-
|
|
100
|
+
btnText="Read More"
|
|
100
101
|
className={`${styles.button} author-gtm`}
|
|
101
102
|
>
|
|
102
103
|
{translate(translations, 'read_more', 'Read More')}
|
|
103
|
-
</
|
|
104
|
+
</Button>
|
|
104
105
|
)}
|
|
105
106
|
</div>
|
|
106
107
|
</div>
|
|
@@ -18,6 +18,7 @@ function Button({
|
|
|
18
18
|
disabled = false,
|
|
19
19
|
tertiary = false,
|
|
20
20
|
noStyle = false,
|
|
21
|
+
icon = null,
|
|
21
22
|
gtmClass = '',
|
|
22
23
|
}) {
|
|
23
24
|
const classes = `${styles.ctaBtn} ${primaryColor ? styles.primary : styles.secondary} ${
|
|
@@ -37,6 +38,7 @@ function Button({
|
|
|
37
38
|
disabled={disabled}
|
|
38
39
|
>
|
|
39
40
|
{btnText}
|
|
41
|
+
{icon && icon}
|
|
40
42
|
</button>
|
|
41
43
|
);
|
|
42
44
|
}
|
|
@@ -45,6 +47,7 @@ function Button({
|
|
|
45
47
|
return (
|
|
46
48
|
<Link className={`${classes} ${gtmClass}`} to={to} title={btnTitle} aria-label={btnTitle}>
|
|
47
49
|
{btnText}
|
|
50
|
+
{icon && icon}
|
|
48
51
|
</Link>
|
|
49
52
|
);
|
|
50
53
|
}
|
|
@@ -60,12 +63,14 @@ function Button({
|
|
|
60
63
|
rel="nofollow noreferrer"
|
|
61
64
|
>
|
|
62
65
|
{btnText}
|
|
66
|
+
{icon && icon}
|
|
63
67
|
</a>
|
|
64
68
|
);
|
|
65
69
|
}
|
|
66
70
|
|
|
67
71
|
Button.propTypes = {
|
|
68
72
|
to: PropTypes.string,
|
|
73
|
+
icon: PropTypes.func,
|
|
69
74
|
btnText: PropTypes.oneOfType([PropTypes.string, PropTypes.any]),
|
|
70
75
|
primaryColor: PropTypes.bool,
|
|
71
76
|
invertColors: PropTypes.bool,
|