@@ -13,6 +13,7 @@ import {
13
13
} from '../input/base/example' ;
14
14
import MediaObject from '../../utilities/media-objects/index.react' ;
15
15
import { Ellie } from '../dynamic-icons/ellie/example' ;
16
+ import { Score } from '../dynamic-icons/score/example' ;
16
17
import SvgIcon from '../../shared/svg-icon' ;
17
18
18
19
export const InlineEditTableContainer = props => (
@@ -257,10 +258,13 @@ export const ErrorsTh = props => (
257
258
* @param {* } props
258
259
* @prop {boolean } actionableMode - Specifies whether the grid is in actionable or navigation mode
259
260
* @prop {boolean } hasFocus - Specifies whether a specific cell is in focus
261
+ * @prop {boolean } hasScore - Specifies whether a row has a score cell
260
262
* @prop {boolean } rowSelected
261
263
* @prop {integer } index - Row index in the Grid
262
264
* @prop {string } accountName
263
265
* @prop {string } amount
266
+ * @prop {string } amountScore
267
+ * @prop {string } amountScoreLabel
264
268
* @prop {string } className - CSS classes for the tr element
265
269
* @prop {string } closeDate
266
270
* @prop {string } confidence
@@ -291,7 +295,19 @@ export const AdvancedDataTableTr = props => (
291
295
< ReadOnlyTd cellText = { props . closeDate } />
292
296
< ReadOnlyTd cellText = { props . stage } />
293
297
< ReadOnlyTd cellText = { props . confidence } />
294
- < ReadOnlyTd cellText = { props . amount } />
298
+ { props . hasScores && props . amountScore && props . amountScoreLabel ? (
299
+ < AdvancedDataTableTd >
300
+ < div className = "slds-grid slds-grid_vertical-align-center" >
301
+ < div className = "slds-truncate" > { props . amount } </ div >
302
+ < div className = "slds-icon_container slds-m-left_x-small slds-m-right_xx-small" >
303
+ < Score data-slds-state = { props . amountScore } />
304
+ </ div >
305
+ < div className = "slds-truncate" > { props . amountScoreLabel } </ div >
306
+ </ div >
307
+ </ AdvancedDataTableTd >
308
+ ) : (
309
+ < ReadOnlyTd cellText = { props . amount } />
310
+ ) }
295
311
< ReadOnlyTd
296
312
actionableMode = { props . actionableMode }
297
313
cellLink = "javascript:void(0);"
0 commit comments