-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add active wallet integration #42
Merged
+1,556
−56
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
853a346
tech(active-wallet): initial wallet layout
eliobricenov 6460314
tech(active-wallet): add query and mutations
eliobricenov e910ac4
tech(active-wallet): add connect wallet example
eliobricenov bfe5924
tech(active-wallet): use appkit for wallet example
eliobricenov aec3589
tech(active-wallet): use correct label when active
eliobricenov 1841cfe
chore: format
eliobricenov 3cfe470
tech(active-wallet): add spinner and error state
eliobricenov 5a5d41d
tech(active-wallet): use scss vars
eliobricenov b08d8b0
tech(active-wallet): use signature and message
eliobricenov 3aa51df
Merge branch 'main' into feat/active-wallet
eliobricenov 0736d0e
chore: update version
eliobricenov 363df37
feat(active-wallet): add error message for already existing wallet
eliobricenov 6914d92
chore: format
eliobricenov 6f94c6a
feat(active-wallet): add toast
eliobricenov 6e14757
chore: add mantine hooks and core to peer dependecies
eliobricenov b51cb5f
feat(active-wallet): add missing component
eliobricenov 22ebb3b
chore: add i18n translations
eliobricenov da1cc18
chore: prettier
eliobricenov e7b2dcc
chore: update i18n keys
eliobricenov b78f922
chore: update i18n keys
eliobricenov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import i18n from 'i18next' | ||
import { initReactI18next } from 'react-i18next' | ||
|
||
// the translations | ||
// (tip move them in a JSON file and import them, | ||
// or even better, manage them separated from your code: https://react.i18next.com/guides/multiple-translation-files) | ||
const resources = { | ||
en: { | ||
translation: { | ||
gameplayWallet: { | ||
info: { | ||
title: 'What is a Gameplay Wallet?', | ||
description: | ||
'Your progress for each Quest is based on the Gameplay wallet you use to start the game.<br/><br/> This allows game studios to properly sync and issue Rewards, regardless if they are in-game or off-chain.<br/><br/>Switching wallets? No problem. Your progress will be saved to each Gameplay wallet address separately.' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
i18n | ||
.use(initReactI18next) // passes i18n down to react-i18next | ||
.init({ | ||
resources, | ||
lng: 'en', // language to use, more information here: https://www.i18next.com/overview/configuration-options#languages-namespaces-resources | ||
interpolation: { | ||
escapeValue: false // react already safes from xss | ||
} | ||
}) | ||
|
||
export default i18n |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is to add appkit to storybook, not to the quest-ui package itself