Skip to content

Commit d381eec

Browse files
EightRiceclaude
andcommitted
fix: Home and Account tab UI improvements
- Replace DAO Contract with Treasury Address in header - Rename "Awaiting Executions" to "Executable" and show 0 instead of - - Apply highlight color to stat values on Home and Account tabs - Replace DelegationBox shadow with thin grey border 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 5d98e2f commit d381eec

4 files changed

Lines changed: 12 additions & 12 deletions

File tree

src/components/ui/etherlink/styled.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ export const DelegationBox = styled(Box)(({ theme }) => ({
239239
alignItems: "center",
240240
textAlign: "center",
241241
gap: "16px",
242-
boxShadow: theme.shadows[8]
242+
border: "1px solid rgba(255, 255, 255, 0.2)"
243243
}))
244244

245245
export const AddressDisplay = styled(Typography)({

src/modules/etherlink/components/EvmDaoStatsRow.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ export const EvmDaoStatsRow = () => {
108108
value: activeProposalsCount || "0"
109109
},
110110
{
111-
title: "Awaiting Executions",
112-
value: daoSelected?.awaiting_executions || awaitingExecutionCount || "-"
111+
title: "Executable",
112+
value: daoSelected?.awaiting_executions ?? awaitingExecutionCount ?? 0
113113
}
114114
].map((item, index) => (
115115
<Grid item xs={12} sm={6} md={3} key={index}>
@@ -118,7 +118,7 @@ export const EvmDaoStatsRow = () => {
118118
<ItemTitle color="textPrimary">{item.title} </ItemTitle>
119119
</ItemContent>
120120
<Grid item>
121-
<ItemValue color="textPrimary">{item.value}</ItemValue>
121+
<ItemValue color="secondary">{item.value}</ItemValue>
122122
</Grid>
123123
</Item>
124124
</Grid>

src/modules/etherlink/explorer/EtherlinkDAO/EvmUserPage.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export const EvmUserPage = () => {
183183
<ItemTitle color="textPrimary">Voting Weight</ItemTitle>
184184
</ItemContent>
185185
<Grid item>
186-
<ItemValue color="textPrimary">{formattedVotingWeight}</ItemValue>
186+
<ItemValue color="secondary">{formattedVotingWeight}</ItemValue>
187187
</Grid>
188188
</TransparentItem>
189189

@@ -192,7 +192,7 @@ export const EvmUserPage = () => {
192192
<ItemTitle color="textPrimary">{daoSelected?.symbol} Balance</ItemTitle>
193193
</ItemContent>
194194
<Grid item>
195-
<ItemValue color="textPrimary">{formattedPersonalBalance}</ItemValue>
195+
<ItemValue color="secondary">{formattedPersonalBalance}</ItemValue>
196196
</Grid>
197197
</TransparentItem>
198198

@@ -206,7 +206,7 @@ export const EvmUserPage = () => {
206206
<ItemTitle color="textPrimary">Proposals Created</ItemTitle>
207207
</ItemContent>
208208
<Grid item>
209-
<ItemValue color="textPrimary">{proposalCreatedCount}</ItemValue>
209+
<ItemValue color="secondary">{proposalCreatedCount}</ItemValue>
210210
</Grid>
211211
</TransparentItem>
212212

@@ -215,7 +215,7 @@ export const EvmUserPage = () => {
215215
<ItemTitle color="textPrimary">Votes Cast</ItemTitle>
216216
</ItemContent>
217217
<Grid item>
218-
<ItemValue color="textPrimary">{proposalVotedCount}</ItemValue>
218+
<ItemValue color="secondary">{proposalVotedCount}</ItemValue>
219219
</Grid>
220220
</TransparentItem>
221221
</StatsGrid>

src/modules/etherlink/explorer/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export const EtherlinkDAOOverview: React.FC = () => {
7272
<Grid container spacing={2}>
7373
<Grid item xs={12} sm={6} md={6}>
7474
<Typography variant="h6" style={{ color: theme.palette.primary.light, fontSize: 16, fontWeight: 300 }}>
75-
DAO Contract
75+
Treasury Address
7676
</Typography>
7777
<Typography
7878
variant="h6"
@@ -84,11 +84,11 @@ export const EtherlinkDAOOverview: React.FC = () => {
8484
wordBreak: "break-all"
8585
}}
8686
>
87-
{daoSelected?.address || "-"}
87+
{daoSelected?.registryAddress || "-"}
8888
<IconButton
8989
onClick={() => {
90-
if (daoSelected?.address) {
91-
navigator.clipboard.writeText(daoSelected.address)
90+
if (daoSelected?.registryAddress) {
91+
navigator.clipboard.writeText(daoSelected.registryAddress)
9292
}
9393
}}
9494
size="small"

0 commit comments

Comments
 (0)