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 {
8484
8585 this . closeProfileModal = this . closeProfileModal . bind ( this )
8686 this . renderBadges = this . renderBadges . bind ( this )
87+ this . renderMap = this . renderMap . bind ( this )
8788 }
8889
8990 async componentDidMount ( ) {
@@ -306,16 +307,17 @@ class Organization extends Component {
306307 )
307308
308309 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
319321 border = { '2px' }
320322 marginTop = { '-5rem' }
321323 marginLeft = { '1rem' }
@@ -328,7 +330,7 @@ class Organization extends Component {
328330 id = 'map-bounds-filter'
329331 type = 'checkbox'
330332 colorScheme = { 'brand' }
331- isChecked= { searchOnMapMove}
333+ isChecked = { this . state . searchOnMapMove }
332334 onChange = { ( e ) => this . setSearchOnMapMove ( e ) }
333335 >
334336 Filter teams by map
@@ -418,24 +420,6 @@ class Organization extends Component {
418420 < Box layerStyle = { 'shadowed' } as = 'section' >
419421 < Heading variant = 'sectionHead' > Teams</ Heading >
420422 { 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 >
439423 < TeamsTable
440424 type = 'org-teams'
441425 orgId = { org . data . id }
You can’t perform that action at this time.
0 commit comments