@@ -34,7 +34,7 @@ const useStyles = makeStyles((theme) => ({
3434 '& h4' : {
3535 paddingLeft : '10px' ,
3636 color : theme . palette . secondary . dark ,
37- [ theme . breakpoints . between ( 'xs' , 'sm' ) ] : {
37+ [ theme . breakpoints . between ( 'xs' , 'sm' ) ] : {
3838 fontSize : '15px' ,
3939 } ,
4040 [ theme . breakpoints . up ( 'md' ) ] : {
@@ -78,7 +78,7 @@ const useStyles = makeStyles((theme) => ({
7878 } ,
7979 } ,
8080 codeforallText : {
81- fontSize :'24px' ,
81+ fontSize : '24px' ,
8282 [ theme . breakpoints . up ( 'sm' ) ] : {
8383 fontSize : '12px' ,
8484 } ,
@@ -114,13 +114,13 @@ const useStyles = makeStyles((theme) => ({
114114/* eslint complexity: [0, 0]*/
115115export const Affiliated = ( props ) => {
116116 const {
117+ affiliatedCount,
117118 classes,
118119 inputValue,
119120 organizations,
120121 organizationData,
121122 filtersActive,
122- affiliatedCount,
123- totalaffiliatedCount,
123+ totalAffiliatedCount,
124124 showIndexContrib,
125125 } = props ;
126126 const classesLocal = useStyles ( ) ;
@@ -132,8 +132,8 @@ export const Affiliated = (props) => {
132132 Affiliated Organizations
133133 < span style = { { paddingLeft : '9px' } } >
134134 { filtersActive
135- ? `(${ affiliatedCount } /${ totalaffiliatedCount } )`
136- : `(${ totalaffiliatedCount } )` }
135+ ? `(${ affiliatedCount } /${ totalAffiliatedCount } )`
136+ : `(${ totalAffiliatedCount } )` }
137137 </ span >
138138 </ Typography >
139139 </ Grid >
@@ -146,10 +146,18 @@ export const Affiliated = (props) => {
146146 } ) }
147147 >
148148 < Grid >
149- < img src = '/images/code_for_All.png' alt = 'code for all logo' className = { classesLocal . codeforAllIcon } />
149+ < img
150+ src = '/images/code_for_All.png'
151+ alt = 'code for all logo'
152+ className = { classesLocal . codeforAllIcon }
153+ />
150154 </ Grid >
151155 < Grid >
152- < Typography variant = 'h4' noWrap className = { classesLocal . codeforallText } >
156+ < Typography
157+ variant = 'h4'
158+ noWrap
159+ className = { classesLocal . codeforallText }
160+ >
153161 < Link
154162 href = '/organization/code-for-all'
155163 target = '_blank'
@@ -159,8 +167,8 @@ export const Affiliated = (props) => {
159167 </ Link >
160168 < span style = { { paddingLeft : '5px' } } >
161169 { filtersActive
162- ? `(${ affiliatedCount } /${ totalaffiliatedCount } )`
163- : ` (${ totalaffiliatedCount } )` }
170+ ? `(${ affiliatedCount } /${ totalAffiliatedCount } )`
171+ : ` (${ totalAffiliatedCount } )` }
164172 </ span >
165173 </ Typography >
166174 </ Grid >
@@ -185,12 +193,15 @@ export const Affiliated = (props) => {
185193 data-cy = 'code-for-all-chevron'
186194 onClick = { ( ) => setDropdownOpen ( ! dropdownOpen ) }
187195 >
188- < DropdownArrow open = { dropdownOpen } handleArrow = { ( ) => setDropdownOpen ( ! dropdownOpen ) } />
196+ < DropdownArrow
197+ open = { dropdownOpen }
198+ handleArrow = { ( ) => setDropdownOpen ( ! dropdownOpen ) }
199+ />
189200 </ Grid >
190201 </ Grid >
191202 < Grid >
192- { dropdownOpen && (
193- ! organizations [ 'Code for All' ] ? (
203+ { dropdownOpen &&
204+ ( ! organizations ? (
194205 ! inputValue ? (
195206 < h3 className = { classes . loaders } > Loading...</ h3 >
196207 ) : (
@@ -206,8 +217,7 @@ export const Affiliated = (props) => {
206217 filtersActive = { filtersActive }
207218 />
208219 </ Grid >
209- )
210- ) }
220+ ) ) }
211221 </ Grid >
212222 </ Grid >
213223 ) ;
0 commit comments