Skip to content

Commit 852ba33

Browse files
authored
Merge pull request #811 from AriGunawan/patch-1
Update Progress.md
2 parents 6469760 + 5d0c5ba commit 852ba33

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
![SharePoint Patterns and Practices](https://devofficecdn.azureedge.net/media/Default/PnP/sppnp.png)
2-
31
# SharePoint Framework React Controls
42

53
This is a open source library that shares a set of reusable React control that can be used in your SharePoint Framework solutions.

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)