This repository was archived by the owner on Feb 27, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +225
-228
lines changed
components/organisms/Hero Expand file tree Collapse file tree 3 files changed +225
-228
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ export default function Hero({
32
32
className = { cn ( styles . hero , className ) }
33
33
style = { {
34
34
// These css custom properties are used inside the css module file to set the card's background image, tint overlay, and fallback bg color.
35
- '--image-url' : `url(${ backgroundImage . url } )` ,
35
+ '--image-url' : `url(${ backgroundImage } )` ,
36
36
'--image-tint-color' : `#00000020` ,
37
37
'--image-fallback-color' : `#000`
38
38
} }
@@ -57,10 +57,7 @@ export default function Hero({
57
57
}
58
58
59
59
Hero . propTypes = {
60
- backgroundImage : PropTypes . shape ( {
61
- url : PropTypes . string ,
62
- alt : PropTypes . string
63
- } ) ,
60
+ backgroundImage : PropTypes . string ,
64
61
body : PropTypes . string ,
65
62
className : PropTypes . string ,
66
63
ctaText : PropTypes . string ,
Original file line number Diff line number Diff line change 47
47
"devDependencies" : {
48
48
"@apollo/client" : " ^3.3.7" ,
49
49
"@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 " ,
54
54
"algoliasearch" : " ^4.8.4" ,
55
55
"babel-loader" : " ^8.2.2" ,
56
56
"chromatic" : " ^5.6.1" ,
68
68
"husky" : " ^4.3.8" ,
69
69
"lint-staged" : " ^10.5.3" ,
70
70
"next-seo" : " ^4.18.0" ,
71
- "next-sitemap" : " ^1.4.15 " ,
71
+ "next-sitemap" : " ^1.4.17 " ,
72
72
"postcss-flexbugs-fixes" : " ^4.2.1" ,
73
73
"postcss-preset-env" : " ^6.7.0" ,
74
74
"prettier" : " ^2.2.1" ,
You can’t perform that action at this time.
0 commit comments