Skip to content

Commit 4f5780c

Browse files
committed
feat: add prime total rewards card
1 parent e6cf09b commit 4f5780c

24 files changed

Lines changed: 478 additions & 41 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import type { SVGProps } from 'react';
2+
3+
const SvgDotShortcut = (props: SVGProps<SVGSVGElement>) => (
4+
<svg
5+
width="16"
6+
height="16"
7+
viewBox="0 0 16 16"
8+
fill="none"
9+
xmlns="http://www.w3.org/2000/svg"
10+
{...props}
11+
>
12+
<rect x="0.5" y="0.5" width="15" height="15" rx="7.5" stroke="currentColor" />
13+
<path
14+
d="M4 9C4.55228 9 5 8.55228 5 8C5 7.44772 4.55228 7 4 7C3.44772 7 3 7.44772 3 8C3 8.55228 3.44772 9 4 9Z"
15+
fill="currentColor"
16+
/>
17+
<path
18+
d="M8 9C8.55228 9 9 8.55228 9 8C9 7.44772 8.55228 7 8 7C7.44772 7 7 7.44772 7 8C7 8.55228 7.44772 9 8 9Z"
19+
fill="currentColor"
20+
/>
21+
<path
22+
d="M12 9C12.5523 9 13 8.55228 13 8C13 7.44772 12.5523 7 12 7C11.4477 7 11 7.44772 11 8C11 8.55228 11.4477 9 12 9Z"
23+
fill="currentColor"
24+
/>
25+
</svg>
26+
);
27+
28+
export default SvgDotShortcut;

apps/evm/src/components/Icon/icons/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ export { default as checkInlineDotted } from './checkInlineDotted';
3939
export { default as mark } from './mark';
4040
export { default as arrowShaft } from './arrowShaft';
4141
export { default as notice } from './notice';
42+
export { default as dotShortcut } from './dotShortcut';
4243
export { default as dots } from './dots';
4344
export { default as exclamation } from './exclamation';
4445
export { default as comment } from './comment';
@@ -66,6 +67,7 @@ export { default as shield2 } from './shield2';
6667
export { default as lightning2 } from './lightning2';
6768
export { default as graph } from './graph';
6869
export { default as star } from './star';
70+
export { default as sparkle } from './sparkle';
6971
export { default as download } from './download';
7072
export { default as arrowUpFull2 } from './arrowUpFull2';
7173
export { default as transactionFile } from './transactionFile';
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import type { SVGProps } from 'react';
2+
3+
const SvgSparkle = (props: SVGProps<SVGSVGElement>) => (
4+
<svg
5+
width="16"
6+
height="16"
7+
viewBox="0 0 16 16"
8+
fill="none"
9+
xmlns="http://www.w3.org/2000/svg"
10+
{...props}
11+
>
12+
<path
13+
d="M3.73138 8.51568C3.84319 8.29954 4.15265 8.29967 4.26459 8.51568L5.31732 10.5528C5.34582 10.6078 5.39121 10.6522 5.44623 10.6807L7.48236 11.7344C7.69864 11.8463 7.69864 12.1548 7.48236 12.2667L5.44623 13.3204C5.39121 13.3489 5.34582 13.3933 5.31732 13.4483L4.26459 15.4854C4.15265 15.7014 3.84319 15.7015 3.73138 15.4854L2.67865 13.4483C2.6501 13.3933 2.60481 13.3488 2.54974 13.3204L0.51361 12.2667C0.297547 12.1548 0.297547 11.8463 0.51361 11.7344L2.54974 10.6807C2.60481 10.6522 2.6501 10.6078 2.67865 10.5528L3.73138 8.51568ZM10.2236 1.62505C10.3287 1.38611 10.6673 1.38614 10.7724 1.62505L11.8652 4.10845C12.0667 4.56644 12.4325 4.93239 12.8906 5.13384L15.374 6.22564C15.6129 6.33074 15.6129 6.67034 15.374 6.77544L12.8906 7.86724C12.4325 8.06869 12.0667 8.43463 11.8652 8.89263L10.7724 11.376C10.6673 11.6149 10.3287 11.615 10.2236 11.376L9.13177 8.89263C8.93027 8.43455 8.5635 8.06872 8.10541 7.86724L5.62298 6.77544C5.38403 6.67034 5.38403 6.33074 5.62298 6.22564L8.10541 5.13384C8.5635 4.93236 8.93027 4.56653 9.13177 4.10845L10.2236 1.62505ZM3.90912 0.171926C3.94641 0.100177 4.04943 0.10031 4.08685 0.171926L4.66498 1.29107C4.67443 1.30923 4.68979 1.32358 4.70795 1.33306L5.82611 1.91216C5.8982 1.94944 5.8982 2.05164 5.82611 2.08892L4.70795 2.66802C4.68979 2.6775 4.67443 2.69184 4.66498 2.71001L4.08685 3.82915C4.04943 3.90077 3.94641 3.9009 3.90912 3.82915L3.33099 2.71001C3.32147 2.69182 3.30627 2.67746 3.28802 2.66802L2.16986 2.08892C2.09819 2.05156 2.09819 1.94952 2.16986 1.91216L3.28802 1.33306C3.30627 1.32362 3.32147 1.30926 3.33099 1.29107L3.90912 0.171926Z"
14+
fill="currentColor"
15+
/>
16+
</svg>
17+
);
18+
19+
export default SvgSparkle;

apps/evm/src/libs/translations/translations/en.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1276,7 +1276,14 @@
12761276
}
12771277
},
12781278
"tablesRefreshNote": "Refreshed hourly · Last refresh: {{date, distanceToNow}} ago",
1279-
"title": "Prime leaderboard"
1279+
"title": "Prime leaderboard",
1280+
"totalRewards": {
1281+
"title": "Total Prime rewards distributed this cycle"
1282+
},
1283+
"userRewards": {
1284+
"marketActions": "Open market actions",
1285+
"title": "Your Prime rewards this cycle"
1286+
}
12801287
},
12811288
"primeStatusBanner": {
12821289
"becomePrimeTitle": "You can now become a Prime user",

apps/evm/src/libs/translations/translations/ja.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1276,7 +1276,14 @@
12761276
}
12771277
},
12781278
"tablesRefreshNote": "1時間ごとに更新 · 最終更新:{{date, distanceToNow}}前",
1279-
"title": "Prime リーダーボード"
1279+
"title": "Prime リーダーボード",
1280+
"totalRewards": {
1281+
"title": "今サイクルに分配された Prime 報酬の総額"
1282+
},
1283+
"userRewards": {
1284+
"marketActions": "マーケット操作を開く",
1285+
"title": "今サイクルのあなたの Prime 報酬"
1286+
}
12801287
},
12811288
"primeStatusBanner": {
12821289
"becomePrimeTitle": "Primeユーザーになれるようになりました",

apps/evm/src/libs/translations/translations/th.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1276,7 +1276,14 @@
12761276
}
12771277
},
12781278
"tablesRefreshNote": "รีเฟรชทุกชั่วโมง · รีเฟรชล่าสุด: {{date, distanceToNow}} ที่แล้ว",
1279-
"title": "กระดานผู้นำ Prime"
1279+
"title": "กระดานผู้นำ Prime",
1280+
"totalRewards": {
1281+
"title": "รางวัล Prime ทั้งหมดที่แจกในรอบนี้"
1282+
},
1283+
"userRewards": {
1284+
"marketActions": "เปิดการดำเนินการของตลาด",
1285+
"title": "รางวัล Prime ของคุณในรอบนี้"
1286+
}
12801287
},
12811288
"primeStatusBanner": {
12821289
"becomePrimeTitle": "ตอนนี้คุณสามารถเป็นผู้ใช้ Prime ได้แล้ว",

apps/evm/src/libs/translations/translations/tr.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1276,7 +1276,14 @@
12761276
}
12771277
},
12781278
"tablesRefreshNote": "Saatlik yenilenir · Son yenileme: {{date, distanceToNow}} önce",
1279-
"title": "Prime lider tablosu"
1279+
"title": "Prime lider tablosu",
1280+
"totalRewards": {
1281+
"title": "Bu döngüde dağıtılan toplam Prime ödülü"
1282+
},
1283+
"userRewards": {
1284+
"marketActions": "Piyasa işlemlerini aç",
1285+
"title": "Bu döngüdeki Prime ödülleriniz"
1286+
}
12801287
},
12811288
"primeStatusBanner": {
12821289
"becomePrimeTitle": "Artık Prime kullanıcısı olabilirsiniz",

apps/evm/src/libs/translations/translations/vi.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1276,7 +1276,14 @@
12761276
}
12771277
},
12781278
"tablesRefreshNote": "Làm mới mỗi giờ · Lần làm mới cuối: {{date, distanceToNow}} trước",
1279-
"title": "Bảng xếp hạng Prime"
1279+
"title": "Bảng xếp hạng Prime",
1280+
"totalRewards": {
1281+
"title": "Tổng thưởng Prime đã phân phối trong chu kỳ này"
1282+
},
1283+
"userRewards": {
1284+
"marketActions": "Mở thao tác thị trường",
1285+
"title": "Phần thưởng Prime của bạn trong chu kỳ này"
1286+
}
12801287
},
12811288
"primeStatusBanner": {
12821289
"becomePrimeTitle": "Bạn đã có thể trở thành người dùng Prime",

apps/evm/src/libs/translations/translations/zh-Hans.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1276,7 +1276,14 @@
12761276
}
12771277
},
12781278
"tablesRefreshNote": "每小时刷新 · 上次刷新:{{date, distanceToNow}}前",
1279-
"title": "Prime 排行榜"
1279+
"title": "Prime 排行榜",
1280+
"totalRewards": {
1281+
"title": "本周期已分配的 Prime 总奖励"
1282+
},
1283+
"userRewards": {
1284+
"marketActions": "打开市场操作",
1285+
"title": "你本周期的 Prime 奖励"
1286+
}
12801287
},
12811288
"primeStatusBanner": {
12821289
"becomePrimeTitle": "你现在可以成为 Prime 用户",

apps/evm/src/libs/translations/translations/zh-Hant.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1276,7 +1276,14 @@
12761276
}
12771277
},
12781278
"tablesRefreshNote": "每小時刷新 · 上次刷新:{{date, distanceToNow}}前",
1279-
"title": "Prime 排行榜"
1279+
"title": "Prime 排行榜",
1280+
"totalRewards": {
1281+
"title": "本週期已分配的 Prime 總獎勵"
1282+
},
1283+
"userRewards": {
1284+
"marketActions": "開啟市場操作",
1285+
"title": "你本週期的 Prime 獎勵"
1286+
}
12801287
},
12811288
"primeStatusBanner": {
12821289
"becomePrimeTitle": "你現在可以成為 Prime 用戶",

0 commit comments

Comments
 (0)