GettingStarted: add key and remove ng-class (#17007)

This commit is contained in:
Ryan McKinley 2019-05-10 11:48:27 -07:00 committed by GitHub
parent e7930a27b5
commit 37011dd8f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -152,11 +152,11 @@ export class GettingStarted extends PureComponent<PanelProps, State> {
<i className="fa fa-remove" /> <i className="fa fa-remove" />
</button> </button>
<div className="progress-tracker"> <div className="progress-tracker">
{this.steps.map(step => { {this.steps.map((step, index) => {
return ( return (
<div className={step.done ? 'progress-step completed' : 'progress-step active'}> <div key={index} className={step.done ? 'progress-step completed' : 'progress-step active'}>
<a className="progress-link" href={step.href} target={step.target} title={step.note}> <a className="progress-link" href={step.href} target={step.target} title={step.note}>
<span className="progress-marker" ng-className="step.cssClass"> <span className="progress-marker">
<i className={step.icon} /> <i className={step.icon} />
</span> </span>
<span className="progress-text">{step.title}</span> <span className="progress-text">{step.title}</span>