-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat/cardano rewards balance banner (#703)
* feat(llm): cardano staking rewards info banner * add changelogs * fix(llm): lint fix
- Loading branch information
Showing
4 changed files
with
44 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"live-mobile": minor | ||
--- | ||
|
||
Rewards balance info banner for Cardanno currency |
2 changes: 2 additions & 0 deletions
2
apps/ledger-live-mobile/src/families/cardano/AccountBodyHeader.js
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,2 @@ | ||
// @flow | ||
export { default } from "./StakingRewardsBanner"; |
29 changes: 29 additions & 0 deletions
29
apps/ledger-live-mobile/src/families/cardano/StakingRewardsBanner.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,29 @@ | ||
// @flow | ||
import React from "react"; | ||
import { Trans } from "react-i18next"; | ||
import { Flex } from "@ledgerhq/native-ui"; | ||
import { InfoMedium } from "@ledgerhq/native-ui/assets/icons"; | ||
import styled from "styled-components/native"; | ||
import LText from "../../components/LText"; | ||
|
||
const Container = styled(Flex).attrs(() => ({ | ||
backgroundColor: "neutral.c30", | ||
padding: 5, | ||
borderRadius: 2, | ||
marginBottom: 6, | ||
marginLeft: 6, | ||
marginRight: 6, | ||
}))``; | ||
|
||
export default function StakingRewardsBanner() { | ||
return ( | ||
<Container> | ||
<Flex flexDirection={"row"} alignItems={"center"} flex={1}> | ||
<InfoMedium size={20} color={"neutral.c80"} /> | ||
<LText ml={3} color="neutral.c80" fontWeight="semiBold"> | ||
<Trans i18nKey="cardano.info.balanceDoesNotIncludeRewards.title" /> | ||
</LText> | ||
</Flex> | ||
</Container> | ||
); | ||
} |
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
aabfe49
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ 83 txs ❌ 4 txs⚠️ 2 specs ($356.27) for [Bot] 'Phosphore'
2 critical spec errors
Spec Bitcoin Testnet failed!
Spec Filecoin failed!
4 mutation errors
Details of the 87 mutations
Spec Algorand (6)
Spec Bitcoin (5)
Spec Bitcoin Testnet (13)
Spec Bitcoin Cash (7)
Spec Bitcoin Gold (5)
Spec Dash (7)
Spec Digibyte (7)
Spec DogeCoin (7)
Spec Komodo (5)
Spec Litecoin (7)
Spec Peercoin (5)
Spec PivX (5)
Spec Qtum (5)
Spec Stakenet (5)
Spec Vertcoin (5)
Spec Viacoin (5)
Spec ZCash (5)
Spec Horizen (5)
Spec Decred (5)
Spec cardano (2)
Spec Celo (5)
Spec Cosmos (26)
Spec Crypto.org Testnet (7)
Spec Crypto.org (failed)
Spec Elrond (3)
Spec BSC (9)
Spec Polygon (10)
Spec Ethereum (failed)
Spec Ethereum Classic (6)
Spec Ethereum Goerli (9)
Spec Filecoin (failed)
Spec Hedera (5)
Spec Polkadot (2)
Spec XRP (5)
Spec Solana (7)
Spec Stellar (2)
Spec Tezos (9)
Spec Tron (3)
Details of the 69 uncovered mutations
Spec Algorand (3)
Spec Bitcoin (4)
Spec Bitcoin Gold (2)
Spec Digibyte (1)
Spec DogeCoin (2)
Spec Komodo (1)
Spec Litecoin (2)
Spec Peercoin (1)
Spec PivX (2)
Spec Qtum (4)
Spec Stakenet (2)
Spec Vertcoin (2)
Spec Viacoin (2)
Spec ZCash (2)
Spec Horizen (1)
Spec Decred (2)
Spec cardano (2)
Spec Cosmos (4)
Spec Crypto.org (1)
Spec BSC (1)
Spec Polygon (1)
Spec Ethereum (6)
Spec Filecoin (2)
Spec Polkadot (5)
Spec Solana (6)
Spec Tezos (3)
Spec Tron (5)
Portfolio ($356.27)