Skip to content

Commit 96b4ef6

Browse files
committed
feat(neuron-ui): add border color on dao records
1 parent e88dc38 commit 96b4ef6

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

packages/neuron-ui/src/components/CustomRows/DAORecordRow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ const DAORecord = ({
8282
}
8383

8484
return (
85-
<div className={styles.daoRecord}>
85+
<div className={`${styles.daoRecord} ${depositOutPoint ? styles.isClaim : ''}`}>
8686
<div className={styles.primaryInfo}>
8787
<div>{interest >= BigInt(0) ? `${shannonToCKBFormatter(interest.toString()).toString()} CKB` : ''}</div>
8888
<div>{`${shannonToCKBFormatter(capacity)} CKB`}</div>

packages/neuron-ui/src/components/CustomRows/daoRecordRow.module.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
display: flex;
33
flex-direction: column;
44
border: 1px solid #000;
5-
border-radius: 5px;
5+
border-radius: 2px;
66
margin: 10px 0;
77
padding: 5px 15px;
8+
border-left: 5px solid green;
89

910
.primaryInfo,
1011
.secondaryInfo {
@@ -32,4 +33,7 @@
3233
color: #666;
3334
}
3435

36+
&.isClaim {
37+
border-left-color: blue;
38+
}
3539
}

0 commit comments

Comments
 (0)