Skip to content

Add a single user state for status across all components #8

@LibruaryNFT

Description

@LibruaryNFT

I need a single state that can be updated from children or the parent in order to display certain media or dialogue text.

States

  1. App.js user.loggedIn == null
  2. App.js user.loggedIn == true && coincollectioncheck == false
  3. App.js user.loggedIn == true && coincollectioncheck == true
  4. App.js user.loggedIn ==true && balance < 1
  5. CoinStore.js purchase(); txStatus = 1, need user to approve
  6. CoinStore.js purchase(); txStatus = 4, user has new coin
  7. CoinCollection.js play(); txStatus = 1, need user to approve
  8. CoinCollection.js play(); txStatus = 4, coin has been tossed into the air
  9. CoinCollection.js item.blockEventData.id && item.blockEventData.kind == null, coin has landed into the waters
  10. CoinCollection.js item.blockEventData.coinresult != null, coin has a result

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions