22 lines
442 B
JavaScript
Raw Normal View History

2018-08-07 15:09:55 +01:00
import PropTypes from "prop-types";
2018-08-02 13:52:10 -04:00
import React from 'react';
2018-10-15 11:08:57 +01:00
import {Row, Col} from "reactstrap";
import ContractsList from './ContractsList';
2018-08-02 13:52:10 -04:00
const Contracts = ({contracts, title = "Contracts"}) => (
2018-10-15 11:08:57 +01:00
<Row>
<Col>
<h1>{title}</h1>
<ContractsList contracts={contracts}></ContractsList>
2018-10-15 11:08:57 +01:00
</Col>
</Row>
2018-08-02 13:52:10 -04:00
);
2018-08-07 15:09:55 +01:00
Contracts.propTypes = {
contracts: PropTypes.array,
title: PropTypes.string
2018-08-07 15:09:55 +01:00
};
2018-08-02 13:52:10 -04:00
export default Contracts;