File tree Expand file tree Collapse file tree 1 file changed +13
-29
lines changed
src/pages/organizations/[id] Expand file tree Collapse file tree 1 file changed +13
-29
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ class Organization extends Component {
84
84
85
85
this . closeProfileModal = this . closeProfileModal . bind ( this )
86
86
this . renderBadges = this . renderBadges . bind ( this )
87
+ this . renderMap = this . renderMap . bind ( this )
87
88
}
88
89
89
90
async componentDidMount ( ) {
@@ -306,16 +307,17 @@ class Organization extends Component {
306
307
)
307
308
308
309
return (
309
- < Map
310
- markers = { centers }
311
- style = { {
312
- height : '360px' ,
313
- zIndex : '10' ,
314
- marginBottom : '1rem' ,
315
- } }
316
- onBoundsChange = { this . onMapBoundsChange . bind ( this ) }
317
- />
318
- < Checkbox
310
+ < >
311
+ < Map
312
+ markers = { centers }
313
+ style = { {
314
+ height : '360px' ,
315
+ zIndex : '10' ,
316
+ marginBottom : '1rem' ,
317
+ } }
318
+ onBoundsChange = { this . onMapBoundsChange . bind ( this ) }
319
+ />
320
+ < Checkbox
319
321
border = { '2px' }
320
322
marginTop = { '-5rem' }
321
323
marginLeft = { '1rem' }
@@ -328,7 +330,7 @@ class Organization extends Component {
328
330
id = 'map-bounds-filter'
329
331
type = 'checkbox'
330
332
colorScheme = { 'brand' }
331
- isChecked= { searchOnMapMove}
333
+ isChecked = { this . state . searchOnMapMove }
332
334
onChange = { ( e ) => this . setSearchOnMapMove ( e ) }
333
335
>
334
336
Filter teams by map
@@ -418,24 +420,6 @@ class Organization extends Component {
418
420
< Box layerStyle = { 'shadowed' } as = 'section' >
419
421
< Heading variant = 'sectionHead' > Teams</ Heading >
420
422
{ this . renderMap ( teams ) }
421
- < Checkbox
422
- border = { '2px' }
423
- marginTop = { '-4rem' }
424
- marginLeft = { '1rem' }
425
- position = 'absolute'
426
- zIndex = '2000'
427
- borderColor = 'brand.600'
428
- p = { 2 }
429
- bg = 'white'
430
- name = 'map-bounds-filter'
431
- id = 'map-bounds-filter'
432
- type = 'checkbox'
433
- colorScheme = { 'brand' }
434
- isChecked = { searchOnMapMove }
435
- onChange = { ( e ) => this . setSearchOnMapMove ( e ) }
436
- >
437
- Filter teams by map
438
- </ Checkbox >
439
423
< TeamsTable
440
424
type = 'org-teams'
441
425
orgId = { org . data . id }
You can’t perform that action at this time.
0 commit comments