Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Commit

Permalink
Make outgoing transactions black instead of red - Closes #658
Browse files Browse the repository at this point in the history
  • Loading branch information
slaweet committed Sep 28, 2017
1 parent 018e223 commit ada03d6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/components/transactions/amount.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const Amount = (props) => {
params.className = 'inButton';
} else if (props.value.type !== transactionTypes.send ||
props.value.recipientId !== props.address) {
params.className = 'outButton';
params.className = 'grayButton';
params.tooltipText = props.value.type === transactionTypes.send ? props.t('Repeat the transaction') : undefined;
params.clickToSendEnabled = props.value.type === transactionTypes.send;
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/transactions/amount.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ describe('Amount', () => {
.to.have.lengthOf(1);
});

it('should have className "transactions__outButton" for outgoing transaction', () => {
it('should have className "transactions__grayButton" for outgoing transaction', () => {
const inputValue = {
value: {
type: 1,
Expand All @@ -62,7 +62,7 @@ describe('Amount', () => {
},
address: 'address',
};
const expectedValue = /transactions__outButton/g;
const expectedValue = /transactions__grayButton/g;
const wrapper = mount(<Amount {...inputValue} />, {
context: { i18n, store },
childContextTypes: {
Expand Down
6 changes: 1 addition & 5 deletions src/components/transactions/transactions.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
:root {
--in: #73c8a9;
--out: #f45d4c;
--out: #777;
--btn: rgb(2, 136, 209);
}

Expand Down Expand Up @@ -29,10 +29,6 @@
text-align: center;
}

.outButton {
background: color(var(--out) alpha(45%)) !important;
}

.in {
color: var(--in) !important;
}
Expand Down

0 comments on commit ada03d6

Please sign in to comment.