Skip to content
Permalink
Browse files

feat(map): don't show normal enemy markers if they're not selected

  • Loading branch information...
jahed committed Apr 11, 2019
1 parent bc3b917 commit b385a45184b3efcc0123b6c9bcd3eb7b56f83813
@@ -13,7 +13,7 @@ import styles from './EnemySpawnPointMarker.module.scss'
const bem = bemModule(styles)
const g = gameResource('xenoblade-chronicles-2')

const EnemySpawnPointMarker = ({ target, categories, complete }) => {
const EnemySpawnPointMarker = ({ target, categories, complete, selected }) => {
const className = bem('EnemySpawnPointMarker', {
quest: partOfQuest(target, categories),
complete
@@ -30,12 +30,16 @@ const EnemySpawnPointMarker = ({ target, categories, complete }) => {
)
}

return (
<div
className={className}
title={target.data.name}
/>
)
if (selected) {
return (
<div
className={className}
title={target.data.name}
/>
)
}

return null
}

const createCategoriesSelector = () => createSelector(

0 comments on commit b385a45

Please sign in to comment.
You can’t perform that action at this time.