File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed
Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,10 @@ import './Banner.scss';
1010const b = block ( 'banner-block' ) ;
1111
1212export const BannerBlock = ( props : BannerBlockProps ) => {
13- const { animated, ...bannerProps } = props ;
13+ const { animated, className , ...bannerProps } = props ;
1414
1515 return (
16- < AnimateBlock className = { b ( ) } animate = { animated } >
16+ < AnimateBlock className = { b ( null , className ) } animate = { animated } >
1717 < BannerCard { ...bannerProps } />
1818 </ AnimateBlock >
1919 ) ;
Original file line number Diff line number Diff line change 33 "content" : {
44 "theme" : " dark" ,
55 "type" : " banner-block" ,
6+ "className" : " " ,
67 "title" : " Lorem ipsum dolor sit amet, consectetur adipiscing elit" ,
78 "subtitle" : " <p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p> " ,
89 "image" : " /story-assets/img_8-12_dark.png" ,
1819 "content" : {
1920 "theme" : " light" ,
2021 "type" : " banner-block" ,
22+ "className" : " " ,
2123 "title" : " Lorem ipsum dolor sit amet, consectetur adipiscing elit" ,
2224 "subtitle" : " <p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p> " ,
2325 "image" : {
Original file line number Diff line number Diff line change @@ -157,6 +157,7 @@ export interface BasicCardProps
157157export interface BannerCardProps {
158158 title : string ;
159159 subtitle ?: string ;
160+ className ?: string ;
160161 image ?: ThemeSupporting < string > ;
161162 disableCompress ?: boolean ;
162163 color ?: ThemeSupporting < string > ;
You can’t perform that action at this time.
0 commit comments