Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

Commit 1755e63

Browse files
committed
Merge branch 'staging' of https://github.com/WebDevStudios/nextjs-wordpress-starter into feature/component-handling
2 parents 7aca11a + e96723e commit 1755e63

File tree

3 files changed

+225
-228
lines changed

3 files changed

+225
-228
lines changed

components/organisms/Hero/Hero.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export default function Hero({
3333
className={cn(styles.hero, className)}
3434
style={{
3535
// These css custom properties are used inside the css module file to set the card's background image, tint overlay, and fallback bg color.
36-
'--image-url': `url(${backgroundImage.url})`,
36+
'--image-url': `url(${backgroundImage})`,
3737
'--image-tint-color': `${tailwindConfig.theme.colors.black['DEFAULT']}50`,
3838
'--image-fallback-color': `${tailwindConfig.theme.colors.grey['darkest']}`
3939
}}
@@ -58,10 +58,7 @@ export default function Hero({
5858
}
5959

6060
Hero.propTypes = {
61-
backgroundImage: PropTypes.shape({
62-
url: PropTypes.string,
63-
alt: PropTypes.string
64-
}),
61+
backgroundImage: PropTypes.string,
6562
body: PropTypes.string,
6663
className: PropTypes.string,
6764
ctaText: PropTypes.string,

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@
4747
"devDependencies": {
4848
"@apollo/client": "^3.3.7",
4949
"@babel/core": "^7.12.10",
50-
"@storybook/addon-a11y": "^6.1.15",
51-
"@storybook/addon-essentials": "^6.1.15",
52-
"@storybook/addon-links": "^6.1.15",
53-
"@storybook/react": "^6.1.15",
50+
"@storybook/addon-a11y": "^6.1.16",
51+
"@storybook/addon-essentials": "^6.1.16",
52+
"@storybook/addon-links": "^6.1.16",
53+
"@storybook/react": "^6.1.16",
5454
"algoliasearch": "^4.8.4",
5555
"babel-loader": "^8.2.2",
5656
"chromatic": "^5.6.1",
@@ -68,7 +68,7 @@
6868
"husky": "^4.3.8",
6969
"lint-staged": "^10.5.3",
7070
"next-seo": "^4.18.0",
71-
"next-sitemap": "^1.4.15",
71+
"next-sitemap": "^1.4.17",
7272
"postcss-flexbugs-fixes": "^4.2.1",
7373
"postcss-preset-env": "^6.7.0",
7474
"prettier": "^2.2.1",

0 commit comments

Comments
 (0)