Skip to content

Commit 25434d5

Browse files
committed
pool+accounts: add button to close the account
1 parent 2481028 commit 25434d5

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

app/src/components/pool/account/AccountSummary.tsx

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,25 @@ const AccountSummary: React.FC = () => {
122122
</SummaryItem>
123123
</>
124124
) : (
125-
<Button
126-
primary
127-
ghost
128-
disabled={account.stateLabel !== 'Open'}
129-
onClick={accountSectionView.showFundAccount}
130-
>
131-
{l('fundAccount')}
132-
</Button>
125+
<SummaryItem>
126+
<Button
127+
danger
128+
ghost
129+
compact
130+
disabled={account.stateLabel !== 'Open'}
131+
onClick={accountSectionView.showCloseAccount}
132+
>
133+
{l('close')}
134+
</Button>
135+
<Button
136+
primary
137+
ghost
138+
disabled={account.stateLabel !== 'Open'}
139+
onClick={accountSectionView.showFundAccount}
140+
>
141+
{l('fundAccount')}
142+
</Button>
143+
</SummaryItem>
133144
)}
134145
</Actions>
135146
</>

0 commit comments

Comments
 (0)