File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
05-react-css-modules/solution Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
1
import React , { Component } from 'react'
2
2
import { VideoItem , ShoppingCart } from './components/index'
3
3
import ReactCSSTransitionGroup from 'react-addons-css-transition-group'
4
- import { foodListData } from '../../public/API'
4
+ import { videoListData } from '../../public/API'
5
5
import './app.css'
6
6
7
7
export default class App extends Component {
@@ -41,7 +41,7 @@ export default class App extends Component {
41
41
{ ! confirmed &&
42
42
< ul className = "video_items" >
43
43
{
44
- foodListData . map ( ( { id, name, price, photoPath } ) => {
44
+ videoListData . map ( ( { id, name, price, photoPath } ) => {
45
45
return < VideoItem
46
46
key = { id }
47
47
name = { name }
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import React, { Component } from 'react'
2
2
import { StyleRoot } from 'radium'
3
3
import { VideoItem , ShoppingCart } from './components/index'
4
4
import ReactCSSTransitionGroup from 'react-addons-css-transition-group'
5
- import { foodListData } from '../../public/API'
5
+ import { videoListData } from '../../public/API'
6
6
import './app.css'
7
7
8
8
export default class App extends Component {
@@ -42,7 +42,7 @@ export default class App extends Component {
42
42
{ ! confirmed &&
43
43
< ul className = "video_items" >
44
44
{
45
- foodListData . map ( ( { id, name, price, photoPath } ) => {
45
+ videoListData . map ( ( { id, name, price, photoPath } ) => {
46
46
return < VideoItem
47
47
key = { id }
48
48
name = { name }
Original file line number Diff line number Diff line change 1
1
import React , { Component } from 'react'
2
2
import { VideoItem , ShoppingCart } from './components/index'
3
3
import ReactCSSTransitionGroup from 'react-addons-css-transition-group'
4
- import { foodListData } from '../../public/API'
4
+ import { videoListData } from '../../public/API'
5
5
6
6
import '../../public/workshop/css/reset.css'
7
7
import '../../public/workshop/css/app.css'
@@ -43,7 +43,7 @@ export default class App extends Component {
43
43
{ ! confirmed &&
44
44
< ul className = "video_items" >
45
45
{
46
- foodListData . map ( ( { id, name, price, photoPath } ) => {
46
+ videoListData . map ( ( { id, name, price, photoPath } ) => {
47
47
return < VideoItem
48
48
key = { id }
49
49
name = { name }
Original file line number Diff line number Diff line change 1
- const foodListData = [
1
+ const videoListData = [
2
2
{
3
3
id : 1231 ,
4
4
name : 'The Global Deads' ,
@@ -25,4 +25,4 @@ const foodListData = [
25
25
}
26
26
]
27
27
28
- export { foodListData }
28
+ export { videoListData }
You can’t perform that action at this time.
0 commit comments