mirror of
https://github.com/brianlovin/security-checklist.git
synced 2026-03-11 08:55:31 +00:00
21 lines
489 B
JavaScript
21 lines
489 B
JavaScript
// @flow
|
|
import React from 'react';
|
|
import data from '../../config/data';
|
|
import ChecklistItem from '../ChecklistItem';
|
|
import { Grid } from './style';
|
|
|
|
class Checklist extends React.Component<{}> {
|
|
render() {
|
|
const keys = Object.keys(data);
|
|
const resources = keys.map(k => data[k]);
|
|
return (
|
|
<Grid>
|
|
{resources.map(resource => (
|
|
<ChecklistItem key={resource.id} resource={resource} />
|
|
))}
|
|
</Grid>
|
|
);
|
|
}
|
|
}
|
|
|
|
export default Checklist;
|