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-08 11:32:43 +02:00
|
|
|
import {Page, Grid} from "tabler-react";
|
|
|
|
import ContractsList from './ContractsList';
|
2018-08-02 13:52:10 -04:00
|
|
|
|
2018-08-27 12:49:01 +10:00
|
|
|
const Contracts = ({contracts, title = "Contracts"}) => (
|
|
|
|
<Page.Content title={title}>
|
2018-08-03 12:29:33 -04:00
|
|
|
<Grid.Row>
|
|
|
|
<Grid.Col>
|
2018-10-08 11:32:43 +02:00
|
|
|
<ContractsList contracts={contracts}></ContractsList>
|
2018-08-03 12:29:33 -04:00
|
|
|
</Grid.Col>
|
|
|
|
</Grid.Row>
|
|
|
|
</Page.Content>
|
2018-08-02 13:52:10 -04:00
|
|
|
);
|
|
|
|
|
2018-08-07 15:09:55 +01:00
|
|
|
Contracts.propTypes = {
|
2018-08-27 12:49:01 +10:00
|
|
|
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;
|
|
|
|
|