File tree 4 files changed +12
-12
lines changed
4 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -42,15 +42,15 @@ const FeatureList: FeatureItem[] = [
42
42
]
43
43
44
44
function Feature ( { title, Svg, description } : FeatureItem ) {
45
- let classVar = styles . featureSvg ;
46
- if ( Svg === require ( '@site/static/img/github.svg' ) . default )
47
- {
48
- classVar = styles . featureSvg + " " + styles . githubLogo ;
45
+ let svgClassName = styles . featureSvg
46
+ if ( Svg === require ( '@site/static/img/github.svg' ) . default ) {
47
+ svgClassName = `${ styles . featureSvg } ${ styles . githubLogo } `
49
48
}
49
+
50
50
return (
51
51
< div className = { clsx ( 'col col--4' ) } >
52
52
< div className = "text--center" >
53
- < Svg className = { classVar } role = "img" />
53
+ < Svg className = { svgClassName } role = "img" />
54
54
</ div >
55
55
< div className = "text--center padding-horiz--md" >
56
56
< h3 > { title } </ h3 >
Original file line number Diff line number Diff line change 12
12
13
13
html [data-theme = 'dark' ] .githubLogo {
14
14
fill : # fff ;
15
- }
15
+ }
Original file line number Diff line number Diff line change @@ -51,16 +51,16 @@ const SponsorList: SponsorItem[] = [
51
51
]
52
52
53
53
function Feature ( { title, Svg, link } : FeatureItem ) {
54
- let classVar = styles . featureSvg ;
55
- if ( Svg === require ( '@site/static/img/Algolia-logo.svg' ) . default )
56
- {
57
- classVar = styles . featureSvg + " " + styles . AlgoliaLogo ;
54
+ let svgClassName = styles . featureSvg
55
+ if ( Svg === require ( '@site/static/img/Algolia-logo.svg' ) . default ) {
56
+ svgClassName = `${ styles . featureSvg } ${ styles . AlgoliaLogo } `
58
57
}
58
+
59
59
return (
60
60
< div className = { clsx ( 'col col--6' ) } >
61
61
< div className = "text--center" >
62
62
< a href = { link } title = { title } target = "_blank" rel = "noreferrer" aria-label = { title } >
63
- < Svg className = { classVar } role = "img" />
63
+ < Svg className = { svgClassName } role = "img" />
64
64
</ a >
65
65
</ div >
66
66
</ div >
Original file line number Diff line number Diff line change 32
32
33
33
html [data-theme = 'dark' ] .AlgoliaLogo {
34
34
fill : # fff ;
35
- }
35
+ }
You can’t perform that action at this time.
0 commit comments