Skip to content

Instantly share code, notes, and snippets.

@harrisrobin
Created March 2, 2016 16:17
Show Gist options
  • Save harrisrobin/4d6e7cb272dba9872b6e to your computer and use it in GitHub Desktop.
Save harrisrobin/4d6e7cb272dba9872b6e to your computer and use it in GitHub Desktop.
import React, {PropTypes} from 'react';
import styles from './Industries.scss';
import cs from 'classnames';
// Components
import Industry from './Industry';
const Industries = (props) => {
let theme = styles[props.theme];
let classes = {
statement: cs('statement', theme),
industries: cs(styles.industries, theme)
};
return (
<div className='component'>
<div className={classes.statement}>
<h2>What type of retail operation do oyu run</h2>
<h4>Pick the type of retail store you run. This will influence how your grade is assessed.</h4>
</div>
<div className={classes.industries}>
{props.industries.map(({industryName, imagePath, orderIndex}, i) => {
return (
<Industry
theme={props.theme}
industryName={industryName}
imagePath={imagePath}
orderIndex={orderIndex}
key={i}/>
);
})}
</div>
</div>
);
};
Industries.propTypes = {
theme: PropTypes.string.isRequired,
industries: PropTypes.array.isRequired
};
export default Industries;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment