1
0
mirror of https://github.com/kremalicious/portfolio.git synced 2024-06-28 00:27:40 +02:00
portfolio/src/components/organisms/Repositories.jsx

27 lines
665 B
React
Raw Normal View History

2019-05-26 16:55:56 +02:00
import React, { PureComponent } from 'react'
import PropTypes from 'prop-types'
2019-05-26 17:50:19 +02:00
2019-05-26 16:55:56 +02:00
import Repository from '../molecules/Repository'
import styles from './Repositories.module.scss'
export default class Repositories extends PureComponent {
static propTypes = {
2019-07-14 00:43:09 +02:00
repos: PropTypes.array
2019-05-26 16:55:56 +02:00
}
render() {
2019-07-04 09:48:48 +02:00
if (!this.props.repos) return null
2019-05-26 16:55:56 +02:00
return (
<section className={styles.section}>
<h1 className={styles.sectionTitle}>Open Source Projects</h1>
<div className={styles.repos}>
2019-05-26 17:50:19 +02:00
{this.props.repos.map(repo => (
2019-05-26 16:55:56 +02:00
<Repository key={repo.name} repo={repo} />
))}
</div>
</section>
)
}
}