-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(wallet-dashboard): style stake overview (#4315)
* feat(wallet-dashboard): style selected visual Assets. * refactor(core): destructure metaKeys and metaValues from attributes * refactor(wallet): move Collapsible component to core. * feat(dashboard): integrate useAssetsDialog for asset details view * fix(assets): update import path and enhance text styling in DetailsView * refactor(wallet-dashboard): move state to page * refactor(wallet-dashboard): rename handler functions for consistency and clarity * refactor(dashboard): update state for asset view, improve code * feat: style stake overview * fix: naming and e2e tests * fix: revert staking constants file naming * fix(wallet-dashboard): unify asset transfer success and error handling in AssetDialog * refactor(dashboard): adjust z-index for dialog and notifications; * feat(dashboard): add refetch functionality after asset transfered * fix: remove leftover text * refactor(dashboard): rename callbacks for clarity in AssetDialog * refactor(dashboard, cove): rename hooks, remove duplication. * refactor(dashboard): remove unused asset details page * fix: remove leftover comments --------- Co-authored-by: Panteleymonchuk <[email protected]> Co-authored-by: evavirseda <[email protected]> Co-authored-by: Marc Espin <[email protected]>
- Loading branch information
1 parent
fdd1b8a
commit 2fdc59e
Showing
18 changed files
with
230 additions
and
168 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
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 './StakedCard'; |
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,16 @@ | ||
// Copyright (c) Mysten Labs, Inc. | ||
// Modifications Copyright (c) 2024 IOTA Stiftung | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
export function determineCountDownText({ | ||
timeAgo, | ||
label, | ||
endLabel, | ||
}: { | ||
timeAgo: string; | ||
label?: string; | ||
endLabel?: string; | ||
}): string { | ||
const showLabel = timeAgo !== endLabel; | ||
return showLabel ? `${label} ${timeAgo}` : timeAgo; | ||
} |
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.