File tree Expand file tree Collapse file tree 1 file changed +10
-12
lines changed
app_modules/site/components/page/component/flavor Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -86,11 +86,15 @@ class ComponentFlavor extends React.Component {
86
86
statesIds = flavor . example . states . map ( state => < JumpAnchor key = { `flavor-${ flavor . id } -${ state . id } ` } id = { `flavor-${ flavor . id } -${ state . id } ` } level = "2" > { flavor . title } › { state . label } </ JumpAnchor > ) ;
87
87
}
88
88
89
+ let lightning = ( component . lightning && flavor . id === 'base' ? component . lightning : null ) || flavor . lightning ;
90
+
89
91
return (
90
92
< section
91
93
className = "slds-m-bottom--xx-large slds-p-top--x-large" >
92
94
< div className = "slds-grid slds-wrap" >
93
- < div className = "slds-col slds-size--1-of-1 slds-large-size--5-of-6" >
95
+ < div className = { classNames ( 'slds-col slds-size--1-of-1' , {
96
+ 'slds-large-size--5-of-6' : lightning
97
+ } ) } >
94
98
< Heading textLabel = { flavor . title } type = "h2" id = { `flavor-${ flavor . id } ` } className = "site-text-heading--large site-text-heading--callout" >
95
99
{ statesIds }
96
100
{ flavor . title }
@@ -99,17 +103,11 @@ class ComponentFlavor extends React.Component {
99
103
{ this . renderCompatiblityBadges ( ) }
100
104
</ Heading >
101
105
</ div >
102
- { ( ( ) => {
103
- let { component } = this . props ;
104
- let lightning = ( component . lightning && flavor . id === 'base' ? component . lightning : null ) || flavor . lightning ;
105
- if ( lightning ) {
106
- return (
107
- < div className = "slds-col slds-size--1-of-1 slds-large-size--1-of-6 slds-text-align--right" >
108
- < a href = { lightning . url } > Developer Guide</ a >
109
- </ div >
110
- ) ;
111
- }
112
- } ) ( ) }
106
+ { lightning ?
107
+ < div className = "slds-col slds-size--1-of-1 slds-large-size--1-of-6 slds-text-align--right" >
108
+ < a href = { lightning . url } > Developer Guide</ a >
109
+ </ div > : null
110
+ }
113
111
</ div >
114
112
115
113
< div className = "slds-grid slds-wrap slds-grid--vertical-stretch" >
You can’t perform that action at this time.
0 commit comments