Skip to content

Commit

Permalink
Import scaffold PlatformsList into Platforms
Browse files Browse the repository at this point in the history
References: #10
  • Loading branch information
Atif-Mahmud committed Nov 13, 2018
1 parent 8196b2e commit 4fd218b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/containers/Platforms.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component } from 'react';
import Platform from '../components/platform';

const platformData = [
{
Expand Down Expand Up @@ -66,9 +67,18 @@ const platformData = [
}
]

function PlatformsList(props) {
const platforms = props.platforms;
const listItems = platforms.map((platform) =>
<Platform platform={platform} />
)
return(listItems);
}

class Platforms extends Component {
render() {
return (
<PlatformsList platforms={platformData}/>
);
}
}
Expand Down

0 comments on commit 4fd218b

Please sign in to comment.