@@ -42,7 +42,6 @@ const GymTile = (gym) => {
4242 const [
4343 hasRaid ,
4444 hasHatched ,
45- excludeTeam ,
4645 inTimerList ,
4746 interactionRangeZoom ,
4847 gymIconUrl ,
@@ -52,7 +51,7 @@ const GymTile = (gym) => {
5251 audio ,
5352 ] = useMemory ( ( s ) => {
5453 const newTs = Date . now ( ) / 1000
55- const { excludeList , timerList, config, Icons, Audio } = s
54+ const { timerList, config, Icons, Audio } = s
5655 const { filters, userSettings } = useStorage . getState ( )
5756
5857 const filledSlots =
@@ -65,18 +64,13 @@ const GymTile = (gym) => {
6564 const eggFilterId = `e${ gym . raid_level } `
6665
6766 const hasRaidInternal =
68- gym . raid_end_timestamp >= newTs &&
69- gym . raid_level > 0 &&
70- ( gym . raid_battle_timestamp >= newTs
71- ? ! excludeList . includes ( eggFilterId )
72- : ! excludeList . includes ( raidFilterId ) )
67+ gym . raid_end_timestamp >= newTs && gym . raid_level > 0
7368 const hasHatchedInternal =
7469 gym . raid_end_timestamp >= newTs && gym . raid_battle_timestamp <= newTs
7570
7671 return [
7772 hasRaidInternal ,
7873 hasHatchedInternal ,
79- excludeList . includes ( `t${ gym . team_id } -0` ) ,
8074 timerList . includes ( gym . id ) ,
8175 config . general . interactionRangeZoom ,
8276 Icons . getGyms (
@@ -172,60 +166,58 @@ const GymTile = (gym) => {
172166 } )
173167 }
174168 return (
175- ! excludeTeam && (
176- < Marker
177- ref = { setMarkerRef }
178- position = { [ gym . lat , gym . lon ] }
179- icon = { gymMarker ( {
180- showDiamond,
181- showExBadge,
182- showArBadge,
183- showRaidLevel,
184- opacity,
185- gymIconUrl,
186- gymIconSize,
187- raidIconUrl,
188- raidIconSize,
189- ...gym ,
190- } ) }
191- >
192- < Popup position = { [ gym . lat , gym . lon ] } >
193- < PopupContent
194- hasRaid = { hasRaid }
195- hasHatched = { hasHatched }
196- raidIconUrl = { raidIconUrl }
197- { ...gym }
198- />
199- </ Popup >
200- { showTimer && (
201- < ToolTipWrapper timers = { [ timerToDisplay ] } offset = { [ 0 , 5 ] } />
202- ) }
203- { showInteractionRange && (
204- < Circle
205- center = { [ gym . lat , gym . lon ] }
206- radius = { 80 }
207- color = { getColor ( gym . team_id ) }
208- weight = { 0.5 }
209- />
210- ) }
211- { show300mCircles && (
212- < Circle
213- center = { [ gym . lat , gym . lon ] }
214- radius = { 300 }
215- color = { getColor ( gym . team_id ) }
216- weight = { 0.5 }
217- />
218- ) }
219- { ! ! customRange && (
220- < Circle
221- center = { [ gym . lat , gym . lon ] }
222- radius = { customRange }
223- color = { getColor ( gym . team_id ) }
224- weight = { 0.5 }
225- />
226- ) }
227- </ Marker >
228- )
169+ < Marker
170+ ref = { setMarkerRef }
171+ position = { [ gym . lat , gym . lon ] }
172+ icon = { gymMarker ( {
173+ showDiamond,
174+ showExBadge,
175+ showArBadge,
176+ showRaidLevel,
177+ opacity,
178+ gymIconUrl,
179+ gymIconSize,
180+ raidIconUrl,
181+ raidIconSize,
182+ ...gym ,
183+ } ) }
184+ >
185+ < Popup position = { [ gym . lat , gym . lon ] } >
186+ < PopupContent
187+ hasRaid = { hasRaid }
188+ hasHatched = { hasHatched }
189+ raidIconUrl = { raidIconUrl }
190+ { ...gym }
191+ />
192+ </ Popup >
193+ { showTimer && (
194+ < ToolTipWrapper timers = { [ timerToDisplay ] } offset = { [ 0 , 5 ] } />
195+ ) }
196+ { showInteractionRange && (
197+ < Circle
198+ center = { [ gym . lat , gym . lon ] }
199+ radius = { 80 }
200+ color = { getColor ( gym . team_id ) }
201+ weight = { 0.5 }
202+ />
203+ ) }
204+ { show300mCircles && (
205+ < Circle
206+ center = { [ gym . lat , gym . lon ] }
207+ radius = { 300 }
208+ color = { getColor ( gym . team_id ) }
209+ weight = { 0.5 }
210+ />
211+ ) }
212+ { ! ! customRange && (
213+ < Circle
214+ center = { [ gym . lat , gym . lon ] }
215+ radius = { customRange }
216+ color = { getColor ( gym . team_id ) }
217+ weight = { 0.5 }
218+ />
219+ ) }
220+ </ Marker >
229221 )
230222}
231223
0 commit comments