-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: save sign in information on local storage
- Loading branch information
Melisa Anabella Rossi
committed
Dec 15, 2023
1 parent
404cb72
commit 5be8713
Showing
7 changed files
with
82 additions
and
49 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { ConnectionModalState } from './ConnectionModal.types' | ||
|
||
export function getConnectionMessage(connectionState: ConnectionModalState) { | ||
switch (connectionState) { | ||
case ConnectionModalState.ERROR: { | ||
return 'You rejected the request in your <b>Wallet</b>. To continue, please try again.' | ||
} | ||
case ConnectionModalState.CONNECTING_WALLET: { | ||
return 'To move forward, confirm the connect action in your <b>Wallet</b>.' | ||
} | ||
case ConnectionModalState.WAITING_FOR_SIGNATURE: { | ||
return 'To move forward, confirm the signature action in your <b>Wallet</b>.' | ||
} | ||
case ConnectionModalState.LOADING_MAGIC: { | ||
return 'Redirecting...' | ||
} | ||
} | ||
} |
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