Skip to content

Commit

Permalink
feat(neuron-ui): add border color on dao records
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith-CY committed Nov 12, 2019
1 parent e88dc38 commit 96b4ef6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const DAORecord = ({
}

return (
<div className={styles.daoRecord}>
<div className={`${styles.daoRecord} ${depositOutPoint ? styles.isClaim : ''}`}>
<div className={styles.primaryInfo}>
<div>{interest >= BigInt(0) ? `${shannonToCKBFormatter(interest.toString()).toString()} CKB` : ''}</div>
<div>{`${shannonToCKBFormatter(capacity)} CKB`}</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
display: flex;
flex-direction: column;
border: 1px solid #000;
border-radius: 5px;
border-radius: 2px;
margin: 10px 0;
padding: 5px 15px;
border-left: 5px solid green;

.primaryInfo,
.secondaryInfo {
Expand Down Expand Up @@ -32,4 +33,7 @@
color: #666;
}

&.isClaim {
border-left-color: blue;
}
}

0 comments on commit 96b4ef6

Please sign in to comment.