Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Commit 7973bcd

Browse files
authored
Add cancel button for edit item description (#322)
* Add cancel button for edit item description * fix lint
1 parent 4c81437 commit 7973bcd

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

webportal/src/app/market_detail/components/pivot_card.jsx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,22 @@ const PivotCard = props => {
4747
<PivotItemWrapper>
4848
{isEditingDescription && (
4949
<>
50+
<IconButton
51+
iconProps={{ iconName: 'Cancel' }}
52+
title='Cancel'
53+
ariaLabel='Cancel'
54+
onClick={() => {
55+
setIsEditingDescriptionFalse();
56+
setMarkdown(marketItem.description);
57+
}}
58+
styles={{
59+
root: {
60+
marginTop: '-55px',
61+
marginRight: '25px',
62+
float: 'right',
63+
},
64+
}}
65+
/>
5066
<IconButton
5167
iconProps={{ iconName: 'Save' }}
5268
title='Save'

0 commit comments

Comments
 (0)