Skip to content

Commit

Permalink
feat: add leaderboard, add token symbol (#464)
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushtom authored Jan 15, 2024
1 parent c0bab23 commit 4ee3dc3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
8 changes: 4 additions & 4 deletions components/UI/navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,9 @@ const Navbar: FunctionComponent = () => {
<Link href="/achievements">
<li className={styles.menuItem}>Achievements</li>
</Link>
{/* <Link href="/leaderboard">
<Link href="/leaderboard">
<li className={styles.menuItem}>Leaderboard</li>
</Link> */}
</Link>
{address ? (
<>
<Link
Expand Down Expand Up @@ -328,14 +328,14 @@ const Navbar: FunctionComponent = () => {
</li>
</Link>
) : null}
{/* <Link href="/leaderboard">
<Link href="/leaderboard">
<li
onClick={() => setNav(false)}
className={styles.menuItemSmall}
>
Leaderboard
</li>
</Link> */}
</Link>
</ul>
</div>
</div>
Expand Down
8 changes: 2 additions & 6 deletions components/quests/quest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import styles from "@styles/quests.module.css";
import { CDNImg } from "@components/cdn/image";
import QuestCard from "./questCard";
import { getBoosts } from "@services/apiService";
import TokenSymbol from "@components/quest-boost/TokenSymbol";

type QuestProps = {
onClick: () => void;
Expand Down Expand Up @@ -108,12 +109,7 @@ const Quest: FunctionComponent<QuestProps> = ({
className={styles.issuer}
style={{ gap: 0, padding: "8px 16px" }}
>
<CDNImg
src={"/icons/usdc.svg"}
width={20}
height={20}
alt="usdc icon"
/>
<TokenSymbol tokenAddress={boost?.token} />
<p className="text-white ml-2">{boost?.amount}</p>
</div>
) : null}
Expand Down

1 comment on commit 4ee3dc3

@vercel
Copy link

@vercel vercel bot commented on 4ee3dc3 Jan 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.