mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-01-26 14:56:42 +08:00
fixing index.html to include step 8 and 9
This commit is contained in:
10
index.html
10
index.html
@@ -122,16 +122,18 @@
|
|||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li class="Tile">
|
<li class="Tile">
|
||||||
<a target="_blank" href="/step2-08/" class="Tile-link">
|
<div class="Tile-link">
|
||||||
Step 8<br />
|
Step 8<br />
|
||||||
Redux: Combine Reducers
|
Redux: Combine Reducers
|
||||||
</a>
|
<div><a target="_blank" href="/step2-08/demo/">demo</a> | <a target="_blank" href="/step2-08/exercise/">exercise</a></div>
|
||||||
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li class="Tile">
|
<li class="Tile">
|
||||||
<a target="_blank" href="/step2-09/" class="Tile-link">
|
<div class="Tile-link">
|
||||||
Step 9<br />
|
Step 9<br />
|
||||||
Redux: Service Calls
|
Redux: Service Calls
|
||||||
</a>
|
<div><a target="_blank" href="/step2-09/demo/">demo</a> | <a target="_blank" href="/step2-09/exercise/">exercise</a></div>
|
||||||
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -30,14 +30,14 @@ export const actionsWithService = {
|
|||||||
complete: (id: string) => {
|
complete: (id: string) => {
|
||||||
return async (dispatch: any, getState: () => Store) => {
|
return async (dispatch: any, getState: () => Store) => {
|
||||||
dispatch(actions.complete(id));
|
dispatch(actions.complete(id));
|
||||||
await service.edit(id, getState().todos[id]);
|
await service.update(id, getState().todos[id]);
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
clear: () => {
|
clear: () => {
|
||||||
return async (dispatch: any, getState: () => Store) => {
|
return async (dispatch: any, getState: () => Store) => {
|
||||||
dispatch(actions.clear());
|
dispatch(actions.clear());
|
||||||
await service.editBulk(getState().todos);
|
await service.updateAll(getState().todos);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user