Skip to content

Commit

Permalink
Dynamic value for number of Beta Realms
Browse files Browse the repository at this point in the history
  • Loading branch information
xpaczka committed Dec 7, 2023
1 parent 316886b commit eefd34b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/ui/Assistant/AssistantContent/AssistantFirstRealm.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from "react"
import { useAssistant, useLocalStorageChange } from "shared/hooks"
import { LOCAL_STORAGE_VISITED_REALM } from "shared/constants"
import { selectNumberOfRealms, useDappSelector } from "redux-state"
import AssistantContent from "."

export default function AssistantFirstRealm() {
Expand All @@ -9,6 +10,8 @@ export default function AssistantFirstRealm() {
LOCAL_STORAGE_VISITED_REALM
)

const numberOfRealms = useDappSelector(selectNumberOfRealms)

const closeAssistant = () => {
updateStorage(true)
updateAssistant({ visible: false, type: "default" })
Expand All @@ -28,9 +31,9 @@ export default function AssistantFirstRealm() {
boards.
</p>
<p className="paragraph" style={{ marginBottom: 0 }}>
Survey our 6 Beta Realms and choose the one you can dominate. The more
$TAHO you stake, the more $XP you earn. The more Citizens in each
Realm, the more your weekly $XP reward gets diluted.
Survey our {numberOfRealms} Beta Realms and choose the one you can
dominate. The more $TAHO you stake, the more $XP you earn. The more
Citizens in each Realm, the more your weekly $XP reward gets diluted.
</p>
</AssistantContent>
<style jsx>{`
Expand Down

0 comments on commit eefd34b

Please sign in to comment.