diff --git a/__tests__/components/transaction-item.test.js b/__tests__/components/transaction-item.test.js
index c4e2c89..44ff1ed 100644
--- a/__tests__/components/transaction-item.test.js
+++ b/__tests__/components/transaction-item.test.js
@@ -21,6 +21,7 @@ describe('', () => {
amount={0.8652}
date={new Date().toISOString()}
zecPrice={2.94}
+ fees={0.0001}
/>
,
);
diff --git a/__tests__/components/transactions-daily.test.js b/__tests__/components/transactions-daily.test.js
index b33d973..44f768f 100644
--- a/__tests__/components/transactions-daily.test.js
+++ b/__tests__/components/transactions-daily.test.js
@@ -27,6 +27,7 @@ describe('', () => {
zecPrice: 1.345,
date: new Date().toISOString(),
theme: appTheme,
+ fees: 0.001,
},
{
type: 'send',
@@ -36,6 +37,7 @@ describe('', () => {
zecPrice: 1.344,
date: new Date().toISOString(),
theme: appTheme,
+ fees: 0.001,
},
]}
/>
diff --git a/app/app.js b/app/app.js
index 334b5b8..f7b161d 100644
--- a/app/app.js
+++ b/app/app.js
@@ -11,8 +11,6 @@ import { appTheme as theme, GlobalStyle } from './theme';
import electronStore from '../config/electron-store';
import { DARK, THEME_MODE } from './constants/themes';
-import 'rc-tooltip/assets/bootstrap.css';
-
const store = configureStore({});
type Props = {};
diff --git a/app/components/transaction-daily.js b/app/components/transaction-daily.js
index b2d13dd..b063351 100644
--- a/app/components/transaction-daily.js
+++ b/app/components/transaction-daily.js
@@ -39,16 +39,17 @@ export const TransactionDailyComponent = ({ transactionsDate, transactions, zecP
{transactions.map(({
- date, type, address, amount, transactionId,
+ date, type, address, amount, transactionId, fees,
}) => (
))}
diff --git a/app/components/transaction-details.js b/app/components/transaction-details.js
index 777109c..f552313 100644
--- a/app/components/transaction-details.js
+++ b/app/components/transaction-details.js
@@ -21,7 +21,6 @@ import { ColumnComponent } from './column';
import { appTheme } from '../theme';
import { formatNumber } from '../utils/format-number';
-import { truncateAddress } from '../utils/truncate-address';
import { openExternal } from '../utils/open-external';
const Wrapper = styled.div`
@@ -127,8 +126,8 @@ type Props = {
zecPrice: number,
date: string,
transactionId: string,
- from: string,
- to: string,
+ address: string,
+ fees: number | string,
handleClose: () => void,
theme: AppTheme,
};
@@ -139,35 +138,25 @@ const Component = ({
zecPrice,
date,
transactionId,
- from,
- to,
+ address,
+ fees,
handleClose,
theme,
}: Props) => {
const isReceived = type === 'receive';
- const receivedIcon = theme.mode === DARK
- ? ReceivedIconDark
- : ReceivedIconLight;
- const sentIcon = theme.mode === DARK
- ? SentIconDark
- : SentIconLight;
+ const receivedIcon = theme.mode === DARK ? ReceivedIconDark : ReceivedIconLight;
+ const sentIcon = theme.mode === DARK ? SentIconDark : SentIconLight;
return (
-
+
-
+
@@ -207,7 +200,7 @@ const Component = ({
openExternal(ZCASH_EXPLORER_BASE_URL + transactionId)
: () => {}
}
@@ -219,15 +212,8 @@ const Component = ({
-
-
-
-
-
-
-
-
-
+
+
diff --git a/app/components/transaction-item.js b/app/components/transaction-item.js
index 2052120..9c51ed9 100644
--- a/app/components/transaction-item.js
+++ b/app/components/transaction-item.js
@@ -71,6 +71,7 @@ export type Transaction = {
date: string,
address: string,
amount: number,
+ fees: number | string,
zecPrice: number,
transactionId: string,
theme: AppTheme,
@@ -81,6 +82,7 @@ const Component = ({
date,
address,
amount,
+ fees,
zecPrice,
transactionId,
theme,
@@ -97,12 +99,8 @@ const Component = ({
});
const transactionAddress = truncateAddress(address);
- const receivedIcon = theme.mode === DARK
- ? ReceivedIconDark
- : ReceivedIconLight;
- const sentIcon = theme.mode === DARK
- ? SentIconDark
- : SentIconLight;
+ const receivedIcon = theme.mode === DARK ? ReceivedIconDark : ReceivedIconLight;
+ const sentIcon = theme.mode === DARK ? SentIconDark : SentIconLight;
return (
@@ -141,8 +136,8 @@ const Component = ({
{
const { address, theme } = this.props;
const { showQRCode, showCopiedTooltip } = this.state;
- const qrCodeIcon = theme.mode === DARK
- ? ScanIconDark
- : ScanIconLight;
+ const qrCodeIcon = theme.mode === DARK ? ScanIconDark : ScanIconLight;
- const copyIcon = theme.mode === DARK
- ? CopyIconDark
- : CopyIconLight;
+ const copyIcon = theme.mode === DARK ? CopyIconDark : CopyIconLight;
return (
@@ -155,27 +151,18 @@ class Component extends PureComponent {
onClick={this.toggleMoreInfo}
onDoubleClick={this.showMoreInfo}
/>
-
+
{}}>
{!showCopiedTooltip ? null : (
)}
-
+
-
+
{!showQRCode ? null : (
diff --git a/app/containers/dashboard.js b/app/containers/dashboard.js
index e2477a6..27c8c9f 100644
--- a/app/containers/dashboard.js
+++ b/app/containers/dashboard.js
@@ -50,11 +50,12 @@ const mapDispatchToProps = (dispatch: Dispatch) => ({
const formattedTransactions: Array