-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
48 changed files
with
593 additions
and
426 deletions.
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
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,5 @@ | ||
[[redirects]] | ||
from = "/actions.html" | ||
to = "/#/sign-up?authRequest=:authRequest" | ||
force = true | ||
query = {authRequest = ":authRequest"} |
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 |
---|---|---|
|
@@ -46,5 +46,6 @@ | |
}, | ||
"workspaces":[ | ||
"packages/*" | ||
] | ||
], | ||
"dependencies": {} | ||
} |
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
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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,16 @@ | ||
import * as reactRouterDom from 'react-router-dom'; | ||
|
||
interface ToOptions { | ||
pathname?: string; | ||
hash?: string; | ||
search?: string; | ||
} | ||
|
||
interface NavigateProps { | ||
to: string | ToOptions; | ||
} | ||
|
||
declare module 'react-router-dom' { | ||
export const Navigate: React.FC<NavigateProps>; | ||
export const Routes: React.FC; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { useSelector } from 'react-redux'; | ||
import { | ||
selectSecretKey, | ||
selectCurrentScreen, | ||
selectAuthRequest, | ||
selectDecodedAuthRequest, | ||
selectMagicRecoveryCode, | ||
selectOnboardingProgress, | ||
selectUsername, | ||
} from '@store/onboarding/selectors'; | ||
|
||
export const useOnboardingState = () => { | ||
const secretKey = useSelector(selectSecretKey); | ||
const screen = useSelector(selectCurrentScreen); | ||
const authRequest = useSelector(selectAuthRequest); | ||
const decodedAuthRequest = useSelector(selectDecodedAuthRequest); | ||
const magicRecoveryCode = useSelector(selectMagicRecoveryCode); | ||
const isOnboardingInProgress = useSelector(selectOnboardingProgress); | ||
const username = useSelector(selectUsername); | ||
|
||
return { secretKey, screen, authRequest, decodedAuthRequest, magicRecoveryCode, isOnboardingInProgress, username }; | ||
}; |
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,20 @@ | ||
import { useSelector } from 'react-redux'; | ||
import { | ||
selectIdentities, | ||
selectCurrentWallet, | ||
selectFirstIdentity, | ||
selectIsRestoringWallet, | ||
selectIsSignedIn, | ||
} from '@store/wallet/selectors'; | ||
import { selectSecretKey } from '@store/onboarding/selectors'; | ||
|
||
export const useWallet = () => { | ||
const identities = useSelector(selectIdentities); | ||
const firstIdentity = useSelector(selectFirstIdentity); | ||
const wallet = useSelector(selectCurrentWallet); | ||
const secretKey = useSelector(selectSecretKey); | ||
const isRestoringWallet = useSelector(selectIsRestoringWallet); | ||
const isSignedIn = useSelector(selectIsSignedIn); | ||
|
||
return { identities, firstIdentity, wallet, secretKey, isRestoringWallet, isSignedIn }; | ||
}; |
File renamed without changes.
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
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.