fix level links

This commit is contained in:
Jon Eugster
2023-03-26 14:27:04 +02:00
parent bbe38ddc7c
commit e7842bce82
+1 -1
View File
@@ -22,7 +22,7 @@ function LevelIcon({ worldId, levelId, position }) {
const completed = useSelector(selectCompleted(gameId, worldId,levelId))
// TODO: relative positioning?
return (
<Link to={`/game/${gameId}/${worldId}/level/${levelId}`} key={`/game/${gameId}/world/${worldId}/level/${levelId}`}>
<Link to={`/game/${gameId}/world/${worldId}/level/${levelId}`} key={`/game/${gameId}/world/${worldId}/level/${levelId}`}>
<circle fill={completed ? "green" :"#aaa"} cx={position.x + Math.sin(levelId/5) * 9} cy={position.y - Math.cos(levelId/5) * 9} r="0.8" />
</Link>
)