-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(wallet,dashboard): move
TransactionReceipt
to core (#4280)
* refactor(wallet,dashboard): move `TransactionReceipt` to core * fix: improve imports * fix: remove unused file * fix: cleanup * rever previous commit * fix: types * fix: update tests * fix: format * refactor: update interfaces to put required first * fix: expandable list * fix: update imported dialog layouts * fix: update missing import * fix: update imports * refactor: rename file * fix(wallet): add core components to tailwind.config.ts * chore: improve interface sorting * fix: celanup types and imports * fix: wait for transaciton and refetch stakes --------- Co-authored-by: Bran <[email protected]>
- Loading branch information
Showing
87 changed files
with
1,025 additions
and
960 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
apps/core/src/components/buttons/ViewTxnOnExplorerButton.tsx
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,23 @@ | ||
// Copyright (c) 2024 IOTA Stiftung | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
import React, { JSX } from 'react'; | ||
import { Button, ButtonType, LoadingIndicator } from '@iota/apps-ui-kit'; | ||
import { ArrowTopRight } from '@iota/ui-icons'; | ||
|
||
interface ViewTxnOnExplorerButtonProps { | ||
digest?: string; | ||
} | ||
|
||
export function ViewTxnOnExplorerButton({ digest }: ViewTxnOnExplorerButtonProps): JSX.Element { | ||
return ( | ||
<Button | ||
type={ButtonType.Outlined} | ||
text="View on Explorer" | ||
fullWidth | ||
icon={digest ? <ArrowTopRight /> : <LoadingIndicator data-testid="loading-indicator" />} | ||
iconAfterText | ||
disabled={!digest} | ||
/> | ||
); | ||
} |
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,4 @@ | ||
// Copyright (c) 2024 IOTA Stiftung | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
export * from './ViewTxnOnExplorerButton'; |
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,5 @@ | ||
// Copyright (c) 2024 IOTA Stiftung | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
export * from './BalanceChanges'; | ||
export * from './ObjectChanges'; |
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.