From b53bfa9bec301e63fbb8c0fdbb7d31f7d719adb3 Mon Sep 17 00:00:00 2001 From: Armani Ferrante Date: Tue, 2 Feb 2021 03:25:07 -0800 Subject: [PATCH] stake-ui: Display converted amount for notifications --- packages/stake-ui/package.json | 4 ++-- packages/stake-ui/src/components/common/MyNode.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/stake-ui/package.json b/packages/stake-ui/package.json index b62d5713..c3e4c2ca 100644 --- a/packages/stake-ui/package.json +++ b/packages/stake-ui/package.json @@ -2,7 +2,7 @@ "name": "@project-serum/stake-ui", "version": "0.0.1-beta.2", "private": true, - "homepage": "https://project-serum.github.io/serum-ts/stake-ui/", + "homepage": ".", "dependencies": { "@material-ui/core": "^4.11.0", "@material-ui/icons": "^4.9.1", @@ -37,7 +37,7 @@ "web-vitals": "^0.2.4" }, "scripts": { - "deploy:app": "rm -rf ../../docs/stake-ui && mv ./build ../../docs/stake-ui/", + "deploy:app": "gh-pages -d build/ --repo git@github.com:project-serum/stake-ui.git", "start": "react-scripts start", "build": "react-scripts build", "test:ui": "react-scripts test", diff --git a/packages/stake-ui/src/components/common/MyNode.tsx b/packages/stake-ui/src/components/common/MyNode.tsx index 4aed767f..3ad96ad7 100644 --- a/packages/stake-ui/src/components/common/MyNode.tsx +++ b/packages/stake-ui/src/components/common/MyNode.tsx @@ -376,7 +376,7 @@ function DepositDialog(props: DepositDialogProps) { ) => { const amount = fromDisplay(displayAmount, mintAccount.decimals); enqueueSnackbar( - `Depositing ${amount} ${toDisplayLabel( + `Depositing ${displayAmount} ${toDisplayLabel( registrar.account.mint, )} from ${from.toString()}`, { @@ -522,7 +522,7 @@ function WithdrawDialog(props: WithdrawDialogProps) { ) => { const amount = fromDisplay(displayAmount, mintAccount.decimals); enqueueSnackbar( - `Withdrawing ${amount} ${toDisplayLabel( + `Withdrawing ${displayAmount} ${toDisplayLabel( registrarAccount.mint, )} to ${from.toString()}`, {