|
366 | 366 | "07/01"
|
367 | 367 | ],
|
368 | 368 | "hints": [
|
369 |
| -"create\"src/pokemon/index.js\"" |
| 369 | +"createa file in\"src/pokemon/index.js\"" |
370 | 370 | ]
|
371 | 371 | },
|
372 | 372 | {
|
373 |
| -"description":"take your `VOTE_UP` action type from\"index.js\" and put it in\"src/pokemon/index.js\"", |
| 373 | +"description":"copy the `VOTE_UP` action type from\"index.js\" and put it in\"src/pokemon/index.js\". Keep the original version for now, so our app won't break yet.", |
374 | 374 | "tests": [
|
375 | 375 | "07/02"
|
376 | 376 | ],
|
|
379 | 379 | ]
|
380 | 380 | },
|
381 | 381 | {
|
382 |
| -"description":"take your `voteUp` action creator from\"src/index.js\" and put it in\"src/pokemon/index.js\". Export it as a [\"named\" export](https://developer.mozilla.org/en/docs/web/javascript/reference/statements/export).", |
| 382 | +"description":"also copy the `voteUp` action creator from\"src/index.js\" and put it in\"src/pokemon/index.js\". Export it as a [\"named\" export](https://developer.mozilla.org/en/docs/web/javascript/reference/statements/export).", |
383 | 383 | "tests": [
|
384 | 384 | "07/03"
|
385 | 385 | ],
|
386 | 386 | "hints": [
|
387 | 387 | "move `voteUp` into\"src/pokemon/index.js\"",
|
388 |
| -"\"src/pokemon/index.js\" should have `const voteUp = id => ({ type: VOTE_UP, payload: { id } });`" |
| 388 | +"\"src/pokemon/index.js\" should have `const voteUp = id => ({ type: VOTE_UP, payload: { id } });`", |
| 389 | +"make it a named export: `export const voteUp` = ..." |
389 | 390 | ]
|
390 | 391 | },
|
391 | 392 | {
|
392 |
| -"description":"take your `pokemon` reducer from\"src/index.js\" and put it in\"src/pokemon/index.js\". Export the reducer as a\"default\" export", |
| 393 | +"description":"import `voteUp` inside of\"src/index.js\". Also delete the unnecessary\"VOTE_UP\" and 'voteUp' in the same file from before.", |
393 | 394 | "tests": [
|
394 | 395 | "07/04"
|
| 396 | + ], |
| 397 | +"hints": [ |
| 398 | +"Try this: `import { voteUp } from './pokemon';`" |
395 | 399 | ]
|
396 | 400 | },
|
397 | 401 | {
|
398 |
| -"description":"in your\"src/index.js\"file, import the action creatorsandreducer in one line of code.", |
| 402 | +"description":"take the `defaultPokemon` from\"src/index.js\" andcopy it into\"src/pokemon/index.js\"", |
399 | 403 | "tests": [
|
400 | 404 | "07/05"
|
| 405 | + ] |
| 406 | + }, |
| 407 | + { |
| 408 | +"description":"take your `pokemon` reducer from\"src/index.js\" and put it in\"src/pokemon/index.js\". Export the reducer as a\"default\" export", |
| 409 | +"tests": [ |
| 410 | +"07/06" |
| 411 | + ] |
| 412 | + }, |
| 413 | + { |
| 414 | +"description":"in your\"src/index.js\" file, also import your pokemon reducer. This can be on the same line of code. Delete the unnecessary original\"pokemon\" and\"defaultPokemon\" as well.", |
| 415 | +"tests": [ |
| 416 | +"07/07" |
401 | 417 | ],
|
402 | 418 | "hints": [
|
403 | 419 | "Try this: `import { default as pokemon, voteUp } from './pokemon';`"
|
|