Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13711349
D11412.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
4 KB
Subscribers
None
D11412.id.diff
View Options
diff --git a/web/cashtab/src/components/Home/Tx.js b/web/cashtab/src/components/Home/Tx.js
--- a/web/cashtab/src/components/Home/Tx.js
+++ b/web/cashtab/src/components/Home/Tx.js
@@ -8,6 +8,7 @@
GenesisIcon,
UnparsedIcon,
ThemedContactsOutlined,
+ AirdropIcon,
} from 'components/Common/CustomIcons';
import { currency } from 'components/Common/Ticker';
import { fromLegacyDecimals } from 'utils/cashMethods';
@@ -373,13 +374,21 @@
</GenesisTx>
) : (
<SentTx>
- <SendIcon />
+ {data.airdropFlag ? (
+ <AirdropIcon />
+ ) : (
+ <SendIcon />
+ )}
</SentTx>
)}
</>
) : (
<ReceivedTx>
- <ReceiveIcon />
+ {data.airdropFlag ? (
+ <AirdropIcon />
+ ) : (
+ <ReceiveIcon />
+ )}
</ReceivedTx>
)}
@@ -394,15 +403,31 @@
Genesis
</h3>
) : (
- <h3 className="sent">
- Sent
- </h3>
+ <>
+ {data.airdropFlag ? (
+ <h3 className="sent">
+ Airdrop
+ </h3>
+ ) : (
+ <h3 className="sent">
+ Sent
+ </h3>
+ )}
+ </>
)}
</>
) : (
- <h3 className="received">
- Received
- </h3>
+ <>
+ {data.airdropFlag ? (
+ <h3 className="received">
+ Airdrop
+ </h3>
+ ) : (
+ <h3 className="received">
+ Received
+ </h3>
+ )}
+ </>
)}
<h4>{txDate}</h4>
</LeftTextCtn>
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 26, 11:45 (16 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5569182
Default Alt Text
D11412.id.diff (4 KB)
Attached To
D11412: [Cashtab] Parse airdrop txs in tx history
Event Timeline
Log In to Comment