Skip to content

Commit 18f4a2f

Browse files
feat: make activity list reedem oToken clear
1 parent a57922b commit 18f4a2f

7 files changed

Lines changed: 8 additions & 3 deletions

File tree

public/oTokens/qAR.png

98.9 KB
Loading

public/oTokens/wAR.png

144 KB
Loading

public/oTokens/wETH.png

98.4 KB
Loading

public/oTokens/wUSDC.png

101 KB
Loading

public/oTokens/wUSDT.png

95.4 KB
Loading

src/components/ActivityList/TransactionItem/TransactionItem.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,5 @@
6060
color: var(--secondary-periwinkle);
6161
font-weight: 600;
6262
margin: 0;
63-
text-align: right;
63+
text-align: left;
6464
}

src/components/ActivityList/TransactionItem/TransactionItem.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export const TransactionItem = ({ tx }: { tx: Transaction }) => {
5050
(token) => token.address === tokenAddress,
5151
);
5252

53-
return token ? token.ticker : "unknown";
53+
return token ? token.cleanTicker : "unknown";
5454
};
5555

5656
const getTransactionInfo = (tags: Transaction["tags"]) => {
@@ -83,7 +83,10 @@ export const TransactionItem = ({ tx }: { tx: Transaction }) => {
8383

8484
const { display, action } = getTransactionInfo(tx.tags);
8585
const tokenTicker = getTokenTicker(tx.tags["token"]);
86-
const activityIcon = `./tokens/${tokenTicker}.svg`;
86+
const activityIcon =
87+
display === "Unlent"
88+
? `./oTokens/${tokenTicker}.png`
89+
: `./tokens/${tokenTicker}.svg`;
8790

8891
const { data: resultData, isLoading: resultIsLoading } = useGetResult(
8992
tx.id,
@@ -128,6 +131,8 @@ export const TransactionItem = ({ tx }: { tx: Transaction }) => {
128131
),
129132
)}
130133
</p>
134+
<p>{tokenTicker}</p>
135+
<p>{display === "Unlent" ? "oTokens" : ""}</p>
131136
</div>
132137

133138
<p className={styles.timestamp}>

0 commit comments

Comments
 (0)