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

Commit

Permalink
[extension] fix eth logo and update abis in extension
Browse files Browse the repository at this point in the history
  • Loading branch information
YBadiss committed Mar 2, 2024
1 parent 0ac3e91 commit 2f375a8
Show file tree
Hide file tree
Showing 3 changed files with 775 additions and 78 deletions.
Binary file modified fc-community-extension/public/logos/eth.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 4 additions & 7 deletions fc-community-extension/src/pages/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,7 @@ function FCProfile(props) {
<div className="flex items-center justify-between rounded-2xl px-10 py-6">
<StatCard name="Notes" value={props.numberNotes} />
<StatCard name="Ratings" value={props.numberRatings} />
<StatCard
name="Earnings"
value={`${props.earnings.slice(0, 7)} ⧫`}
/>
<StatCard name="Earnings" value={`${props.earnings.slice(0, 7)}`} />
</div>
{props.loggedIn && <FCNetworks />}
</div>
Expand Down Expand Up @@ -186,14 +183,14 @@ function FCPopup({ provider }) {
return {
notes: `${stats[0]}`,
ratings: `${stats[1]}`,
earnings: `${ethers.formatEther(earnings)} ETH`,
earnings: `${ethers.formatEther(earnings)} `,
};
} else {
console.log(`Default data for user stats`);
return {
notes: '?',
ratings: '?',
earnings: '? ETH',
earnings: '? ',
};
}
};
Expand All @@ -203,7 +200,7 @@ function FCPopup({ provider }) {
const numberRatings = () =>
userStats.loading || !userStats() ? '?' : userStats().ratings;
const earnings = () =>
userStats.loading || !userStats() ? '? ETH' : userStats().earnings;
userStats.loading || !userStats() ? '?' : userStats().earnings;
provider.getAddress().then(setAddress);

return (
Expand Down
Loading

0 comments on commit 2f375a8

Please sign in to comment.