Skip to content

Commit 5d0c5ba

Browse files
authored
Update Progress.md
It might be better to have consistency on the variable names between code samples to avoid confusion.
1 parent bde7827 commit 5d0c5ba

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/documentation/docs/controls/Progress.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ Now, in a component, where `Progress` is used you can have code as below:
6363

6464
```TypeScript
6565
export interface IYourComponentState {
66-
actions: IProgressAction[];
67-
currentActionIndex?: number;
66+
progressActions: IProgressAction[];
67+
currentProgressActionIndex?: number;
6868
// other state properties
6969
}
7070

@@ -75,7 +75,7 @@ export class YourComponent extends React.Component<IYourComponentProps, IYourCom
7575

7676
private _initActions() {
7777
this.setState({
78-
actions: [
78+
progressActions: [
7979
new FirstAction(),
8080
new SecondAction()
8181
]
@@ -84,7 +84,7 @@ export class YourComponent extends React.Component<IYourComponentProps, IYourCom
8484

8585
private async _execute() {
8686
for (let i = 0; i <= this.state.actions.length; i++) {
87-
this.setState(currentActionIndex: i);
87+
this.setState(currentProgressActionIndex: i);
8888

8989
if (i < this.state.actions.length) {
9090
await this.state.actions[i].execute();

0 commit comments

Comments
 (0)