Skip to content

Commit d7bb4da

Browse files
committed
update hint texts
1 parent 1753f2b commit d7bb4da

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

src/components/dashboard/DashboardCardValue.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const DashboardCard = ({
3131
label={hint}
3232
popoverContentProps={{
3333
w: "fit-content",
34-
maxW: { base: "calc(100vw - 8px)", lg: "210px" },
34+
maxW: { base: "calc(100vw - 8px)", lg: "400px" },
3535
}}
3636
popoverBodyProps={{ textAlign: "center" }}
3737
/>

src/components/tabs/TasksTab.tsx

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@ export default function TasksTab() {
106106
or [interact with smart contracts](https://base.blockscout.com/address/0xd454688D0185aB166D0c4b28D57edeb475b416A8?tab=read_write_proxy&utm_source=merits-website&utm_medium=transactions-task)
107107
to earn extra Merits each week.
108108
`.trim(),
109+
percentileHint:
110+
"Measures your performance relative to other Merit program participants. Complete additional transactions to increase your weekly performance rank.",
111+
amountHint:
112+
"The number of extra Merits you have earned this week from your transactions. Complete additional transactions to earn additional Merits.",
109113
percentile: activities.transactions?.percentile,
110114
percentileDiff: activities.transactions?.percentileDiff,
111115
amount: activities.transactions?.amount,
@@ -118,6 +122,10 @@ export default function TasksTab() {
118122
then [verify smart contracts](https://eth.blockscout.com/contract-verification?utm_source=merits-website&utm_medium=verify-contracts-task)
119123
manually on Blockscout for different chains and earn extra Merits every week.
120124
`.trim(),
125+
percentileHint:
126+
"Measures your performance relative to other Merit program participants. Verify more contracts to increase your weekly performance rank.",
127+
amountHint:
128+
"The number of extra Merits you have earned this week from your contract verifications. Verify more contracts to earn additional Merits.",
121129
percentile: activities.contracts?.percentile,
122130
percentileDiff: activities.contracts?.percentileDiff,
123131
amount: activities.contracts?.amount,
@@ -129,6 +137,10 @@ export default function TasksTab() {
129137
Grab your [Activity pass](${activityPassUrl}&utm_medium=verify-contracts-task)
130138
then just use Blockscout explorers in your every day routine.
131139
`.trim(),
140+
percentileHint:
141+
"Measures your performance relative to other Merit program participants. Use Blockscout explorers and add them to a MetaMask wallet to increase your weekly performance rank.",
142+
amountHint:
143+
"The number of extra Merits you have earned this week from your Blockscout usage. Use Blockscout explorers and add them to a MetaMask wallet to earn additional Merits.",
132144
percentile: activities.usage?.percentile,
133145
percentileDiff: activities.usage?.percentileDiff,
134146
amount: activities.usage?.amount,
@@ -169,15 +181,15 @@ export default function TasksTab() {
169181
<DashboardCardValue
170182
label="Performance rank"
171183
value={item.percentile}
172-
hint="Performance rank"
184+
hint={item.percentileHint}
173185
bottomText={`${item.percentileDiff} vs previous week`}
174186
isLoading={isLoading}
175187
/>
176188
<DashboardCardValue
177189
label="Merits earned"
178190
value={item.amount}
179191
withIcon
180-
hint="Merits earned"
192+
hint={item.amountHint}
181193
bottomText={`${item.amountDiff} vs previous week`}
182194
isLoading={isLoading}
183195
/>

0 commit comments

Comments
 (0)