Skip to content

Commit

Permalink
🪄 [QA] Update stage environments (#612)
Browse files Browse the repository at this point in the history
This is a pull request that upon merging will update stage environments
with recent `main` changes.
The environments that will be updated:
* Stage live: https://stage-live--taho-development.netlify.app/
* Stage fork: https://stage-fork--taho-development.netlify.app/

Read more: [Deployment to Production
Flow](https://github.com/tahowallet/dapp/blob/main/docs/testing-env.md)
  • Loading branch information
andreachapman authored Nov 1, 2023
2 parents 8d81046 + 94ba487 commit 2a6ca83
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions src/ui/Island/RealmPin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,22 @@ import {
} from "redux-state"
import { FIGMA_FACTOR, getRealmMapData } from "shared/constants"

const PIN_TRANSLATE = 200
function getPinShift(realmId: string) {
switch (realmId) {
case "4":
return { x: 200, y: 300 }
case "7":
return { x: 500, y: 300 }
case "9":
return { x: 500, y: 300 }
case "19":
return { x: 250, y: 250 }
case "22":
return { x: 200, y: 250 }
default:
return { x: 250, y: 250 }
}
}

export default function RealmPin() {
const stakingRealmId = useDappSelector(selectStakingRealmId)
Expand All @@ -22,8 +37,9 @@ export default function RealmPin() {

if (!stakingRealmId || !stakingRealm) return null

const pinX = stakingRealm.x + stakingRealm.w * 0.75 - PIN_TRANSLATE
const pinY = stakingRealm.y + stakingRealm.h / 2 - PIN_TRANSLATE
const pinShift = getPinShift(stakingRealmId)
const pinX = stakingRealm.x + stakingRealm.w * 0.75 - pinShift.x
const pinY = stakingRealm.y + stakingRealm.h / 2 - pinShift.y

return (
<Group listening={false}>
Expand Down

0 comments on commit 2a6ca83

Please sign in to comment.