Skip to content

Commit bb7be29

Browse files
committed
feat: show fingerprint changed message
1 parent b0e87b2 commit bb7be29

File tree

3 files changed

+32
-11
lines changed

3 files changed

+32
-11
lines changed

src/Translation/locales/en.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
},
3030
"expiration": "Expiration",
3131
"expiration_placeholder": "Expiration date for this publication",
32-
"fingerprint_changed": "Fingerprint changed",
32+
"fingerprint_changed":
33+
"This {asset_name} has been modified. You can only cancel the bid.",
3334
"insufficient_funds":
3435
"The bidder has insufficient funds to pay for the bid",
3536
"list_asset": "Place a bid for the {asset_name}",

webapp/src/components/Bid/Bid.css

+13
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@
3434
overflow: hidden;
3535
}
3636

37+
.Bid.fingerprint-changed .row .ParcelCanvasWrapper {
38+
border-radius: 10px 0 0 0;
39+
}
40+
3741
.Bid .row h3 {
3842
text-transform: uppercase;
3943
color: var(--gray);
@@ -89,6 +93,15 @@
8993
margin-left: 15px !important;
9094
}
9195

96+
.ui.stackable.grid.Bid .row.fingerprint-changed {
97+
margin-top: 1rem;
98+
border-top: 1px solid var(--background);
99+
padding: 10px;
100+
font-size: 14px;
101+
text-align: center;
102+
color: var(--gray);
103+
}
104+
92105
@media(max-width: 768px) {
93106
.Bid .row .column.asset-details a {
94107
margin: -1rem;

webapp/src/components/Bid/Bid.js

+17-10
Original file line numberDiff line numberDiff line change
@@ -131,13 +131,12 @@ export default class Bid extends React.PureComponent {
131131
mobile: showAssetDetail ? 8 : 16
132132
}
133133

134+
let gridClassName = `Bid ${className}`
135+
gridClassName += showAssetDetail ? ' showAssetDetail' : ''
136+
gridClassName += fingerprintChanged ? ' fingerprint-changed' : ''
137+
134138
return (
135-
<Grid
136-
stackable
137-
className={`Bid ${className} ${
138-
showAssetDetail ? 'showAssetDetail' : ''
139-
}`}
140-
>
139+
<Grid stackable className={gridClassName}>
141140
<Grid.Row>
142141
{showAssetDetail && (
143142
<React.Fragment>
@@ -195,10 +194,6 @@ export default class Bid extends React.PureComponent {
195194
mobile={16}
196195
className={'actions'}
197196
>
198-
{!isOwner &&
199-
fingerprintChanged && (
200-
<p>{t('asset_bid.fingerprint_changed')}</p>
201-
)}
202197
<Button
203198
className={`${isOwner ? 'primary' : ''}`}
204199
onClick={preventDefault(onConfirm)}
@@ -221,6 +216,18 @@ export default class Bid extends React.PureComponent {
221216
</Grid>
222217
</Grid.Column>
223218
</Grid.Row>
219+
{!isOwner &&
220+
fingerprintChanged && (
221+
<Grid.Row className="fingerprint-changed">
222+
<Grid.Column>
223+
<p>
224+
{t('asset_bid.fingerprint_changed', {
225+
asset_name: t('name.estate')
226+
})}
227+
</p>
228+
</Grid.Column>
229+
</Grid.Row>
230+
)}
224231
</Grid>
225232
)
226233
}

0 commit comments

Comments
 (0)