@@ -100,12 +100,12 @@ export default (props) => {
100100 < div className = "plugin-info" >
101101 < div className = "title-wrapper" >
102102 < h1 className = "plugin-name" > { name } </ h1 >
103- { repository
104- ? < a href = { repository } className = "source-indicator" >
105- < i className = "icon github" > </ i >
106- < span > { strings . open_source } </ span >
107- </ a >
108- : null }
103+ { repository ? (
104+ < a href = { repository } className = "source-indicator" >
105+ < i className = "icon github" > </ i >
106+ < span > { strings . open_source } </ span >
107+ </ a >
108+ ) : null }
109109 </ div >
110110 < div className = "plugin-meta" >
111111 < span className = "meta-item" >
@@ -121,14 +121,16 @@ export default (props) => {
121121 < a href = { `https://github.com/${ authorGithub } ` } className = "" >
122122 { author }
123123 </ a >
124- { authorVerified
125- ? < i
126- on :click = { ( ) => {
127- toast ( strings [ "verified publisher" ] ) ;
128- } }
129- className = "licons verified verified-tick"
130- > </ i >
131- : "" }
124+ { authorVerified ? (
125+ < i
126+ on :click = { ( ) => {
127+ toast ( strings [ "verified publisher" ] ) ;
128+ } }
129+ className = "licons verified verified-tick"
130+ > </ i >
131+ ) : (
132+ ""
133+ ) }
132134 </ span >
133135 < span className = "meta-item" >
134136 < span
@@ -138,44 +140,44 @@ export default (props) => {
138140 { license || "Unknown" }
139141 </ span >
140142 </ div >
141- { votesUp !== undefined
142- ? < div className = "metrics-row" >
143- < div className = "metric" >
144- < span className = "icon save_alt" > </ span >
145- < span className = "metric-value" >
146- { helpers . formatDownloadCount (
147- typeof downloads === "string"
148- ? Number . parseInt ( downloads )
149- : downloads ,
150- ) }
151- </ span >
152- < span > { strings . downloads } </ span >
153- </ div >
154- < div className = "metric" >
155- < i className = "icon favorite" > </ i >
156- < span
157- className = { `rating-value ${ rating === "unrated" ? "" : rating . replace ( "%" , "" ) >= 80 ? "rating-high" : rating . replace ( "%" , "" ) >= 50 ? "rating-medium" : "rating-low" } ` }
158- >
159- { rating }
160- </ span >
161- </ div >
162- < div
163- className = "metric"
164- onclick = { showReviews . bind ( null , id , author ) }
143+ { votesUp !== undefined ? (
144+ < div className = "metrics-row" >
145+ < div className = "metric" >
146+ < span className = "icon save_alt" > </ span >
147+ < span className = "metric-value" >
148+ { helpers . formatDownloadCount (
149+ typeof downloads === "string"
150+ ? Number . parseInt ( downloads )
151+ : downloads ,
152+ ) }
153+ </ span >
154+ < span > { strings . downloads } </ span >
155+ </ div >
156+ < div className = "metric" >
157+ < i className = "icon favorite" > </ i >
158+ < span
159+ className = { `rating-value ${ rating === "unrated" ? "" : rating . replace ( "%" , "" ) >= 80 ? "rating-high" : rating . replace ( "%" , "" ) >= 50 ? "rating-medium" : "rating-low" } ` }
165160 >
166- < i className = "icon chat_bubble" > </ i >
167- < span className = "metric-value" > { commentCount } </ span >
168- < span > { strings . reviews } </ span >
169- </ div >
161+ { rating }
162+ </ span >
170163 </ div >
171- : null }
172- { Array . isArray ( keywords ) && keywords . length
173- ? < div className = "keywords" >
174- { keywords . map ( ( keyword ) => (
175- < span className = "keyword" > { keyword } </ span >
176- ) ) }
164+ < div
165+ className = "metric"
166+ onclick = { showReviews . bind ( null , id , author ) }
167+ >
168+ < i className = "icon chat_bubble" > </ i >
169+ < span className = "metric-value" > { commentCount } </ span >
170+ < span > { strings . reviews } </ span >
177171 </ div >
178- : null }
172+ </ div >
173+ ) : null }
174+ { Array . isArray ( keywords ) && keywords . length ? (
175+ < div className = "keywords" >
176+ { keywords . map ( ( keyword ) => (
177+ < span className = "keyword" > { keyword } </ span >
178+ ) ) }
179+ </ div >
180+ ) : null }
179181 </ div >
180182 < div className = "action-buttons" >
181183 < Buttons { ...props } />
0 commit comments