Skip to content

Commit

Permalink
add xAlias support
Browse files Browse the repository at this point in the history
  • Loading branch information
juliancwirko committed Oct 28, 2023
1 parent bb1b904 commit 13b959f
Show file tree
Hide file tree
Showing 5 changed files with 156 additions and 5,088 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### [0.5.0](https://github.com/xdevguild/buildo.dev/releases/tag/v0.5.0) (2023-10-28)
- update useElven - add support for xAlias
- update Next.js v14

### [0.4.0](https://github.com/xdevguild/buildo.dev/releases/tag/v0.4.0) (2023-10-25)
- add change NFT attributes functionality

Expand Down
16 changes: 12 additions & 4 deletions components/elven-ui/login-component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,11 @@ export const LoginComponent = memo(() => {
<Button
className="w-full select-none h-auto"
variant="outline"
onClick={handleLogin(LoginMethodsEnum.wallet)}
onClick={handleLogin(LoginMethodsEnum.walletconnect)}
>
MultiversX Web Wallet
xPortal Mobile App
</Button>

<Button
className="w-full select-none h-auto"
variant="outline"
Expand All @@ -84,9 +85,9 @@ export const LoginComponent = memo(() => {
<Button
className="w-full select-none h-auto"
variant="outline"
onClick={handleLogin(LoginMethodsEnum.walletconnect)}
onClick={handleLogin(LoginMethodsEnum.wallet)}
>
xPortal Mobile App
MultiversX Web Wallet
</Button>
<Button
className="w-full select-none h-auto"
Expand All @@ -95,6 +96,13 @@ export const LoginComponent = memo(() => {
>
Ledger
</Button>
<Button
className="w-full select-none h-auto"
variant="outline"
onClick={handleLogin(LoginMethodsEnum.xalias)}
>
xAlias
</Button>
</div>
)}

Expand Down
4 changes: 4 additions & 0 deletions components/operations/operations-status-dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ export const OperationsStateDialogWrapper = ({
{!txError &&
loginMethod === LoginMethodsEnum.wallet &&
'Confirming using MultiversX Web Wallet!'}
{!txError &&
loginMethod === LoginMethodsEnum.xalias &&
'Confirming using xAlias service!'}
{txError &&
'Please try again. In case of transactions, always check the transaction status on the MultiversX Explorer.'}
</DialogDescription>
Expand Down Expand Up @@ -177,6 +180,7 @@ export const OperationsStateDialogWrapper = ({
!txPending &&
additionalInfo &&
loginMethod !== LoginMethodsEnum.wallet &&
loginMethod !== LoginMethodsEnum.xalias &&
!activeGuardianAddress && (
<span className="text-sm mt-4 font-light">
{additionalInfo}
Expand Down
Loading

1 comment on commit 13b959f

@vercel
Copy link

@vercel vercel bot commented on 13b959f Oct 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.