-
Notifications
You must be signed in to change notification settings - Fork 327
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into fix/fix-sell-ng
- Loading branch information
Showing
89 changed files
with
2,608 additions
and
542 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@ledgerhq/coin-tezos": patch | ||
--- | ||
|
||
Tezos send full balance |
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,13 @@ | ||
--- | ||
"ledger-live-desktop": minor | ||
"live-mobile": minor | ||
"@ledgerhq/icons-ui": minor | ||
"@ledgerhq/types-live": patch | ||
"@ledgerhq/native-ui": patch | ||
--- | ||
|
||
ledger-live-desktop: Updated staking modal. Filtering per category. New copy and design | ||
live-mobile: Updated staking modal. Filtering per category. New copy and design | ||
@ledgerhq/icons-ui: Add book-graduation icon | ||
@ledgerhq/types-live: Update schema of ethStakingProviders flag | ||
@ledgerhq/native-ui: Add `xs` size to Button |
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,6 @@ | ||
--- | ||
"@ledgerhq/coin-algorand": patch | ||
"@ledgerhq/coin-tezos": patch | ||
--- | ||
|
||
Tezos send full balance and fix algorand format issue |
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,6 @@ | ||
--- | ||
"ledger-live-desktop": patch | ||
"live-mobile": patch | ||
--- | ||
|
||
Add the platform OS to the params passed to earn to enable the correct braze environment |
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,6 @@ | ||
--- | ||
"live-mobile": minor | ||
"@ledgerhq/native-ui": minor | ||
--- | ||
|
||
Add the receive flow `NeedMemoTagModal` |
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
60 changes: 60 additions & 0 deletions
60
apps/ledger-live-desktop/src/renderer/families/bitcoin/AccountHeaderManageActions.ts
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,60 @@ | ||
import { getMainAccount } from "@ledgerhq/live-common/account/index"; | ||
|
||
import { useTranslation } from "react-i18next"; | ||
import { useHistory } from "react-router"; | ||
import { track } from "~/renderer/analytics/segment"; | ||
import { stakeDefaultTrack } from "~/renderer/screens/stake/constants"; | ||
import { BitcoinAccount } from "@ledgerhq/coin-bitcoin/lib/types"; | ||
import { TokenAccount } from "@ledgerhq/types-live"; | ||
import IconCoins from "~/renderer/icons/Coins"; | ||
|
||
type Props = { | ||
account: BitcoinAccount | TokenAccount; | ||
parentAccount: BitcoinAccount | undefined | null; | ||
}; | ||
|
||
const AccountHeaderActions = ({ account, parentAccount }: Props) => { | ||
const history = useHistory(); | ||
const { t } = useTranslation(); | ||
const mainAccount = getMainAccount(account, parentAccount); | ||
const { | ||
bitcoinResources, | ||
currency: { id: currencyId }, | ||
} = mainAccount; | ||
if (!bitcoinResources || parentAccount || currencyId !== "bitcoin") return null; | ||
|
||
const stakeOnClick = () => { | ||
const value = "/platform/acre"; | ||
|
||
track("button_clicked2", { | ||
...stakeDefaultTrack, | ||
delegation: "stake", | ||
page: "Page Account", | ||
button: "delegate", | ||
provider: "Acre", | ||
currency: "BTC", | ||
}); | ||
history.push({ | ||
pathname: value, | ||
state: { | ||
accountId: account.id, | ||
returnTo: `/account/${account.id}`, | ||
}, | ||
}); | ||
}; | ||
|
||
return [ | ||
{ | ||
key: "Stake", | ||
icon: IconCoins, | ||
label: t("accounts.contextMenu.yield"), | ||
event: "button_clicked2", | ||
eventProperties: { | ||
button: "stake", | ||
}, | ||
onClick: stakeOnClick, | ||
}, | ||
]; | ||
}; | ||
|
||
export default AccountHeaderActions; |
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.