Sha256: 34ff18c61aeb24004ac94c11447e9b4bd64f2e0afe851dea51ab5748f48e23b1
Contents?: true
Size: 1.55 KB
Versions: 115
Compression:
Stored size: 1.55 KB
Contents
import React from 'react'; import PropTypes from 'prop-types'; import { Grid, Col, Row, Form, FormGroup } from 'react-bootstrap'; import Search from '../../components/Search/index'; import ContentTable from './ContentTable'; const ContentPage = ({ header, onSearch, getAutoCompleteParams, updateSearchQuery, initialInputValue, content, tableSchema, onPaginationChange, }) => ( <Grid bsClass="container-fluid"> <Row> <Col sm={12}> <h1>{header}</h1> </Col> </Row> <Row> <Col sm={6}> <Form className="toolbar-pf-actions"> <FormGroup className="toolbar-pf toolbar-pf-filter"> <Search onSearch={onSearch} getAutoCompleteParams={getAutoCompleteParams} updateSearchQuery={updateSearchQuery} initialInputValue={initialInputValue} /> </FormGroup> </Form> </Col> </Row> <Row> <Col sm={12}> <ContentTable content={content} tableSchema={tableSchema} onPaginationChange={onPaginationChange} /> </Col> </Row> </Grid> ); ContentPage.propTypes = { header: PropTypes.string.isRequired, content: PropTypes.shape({}).isRequired, tableSchema: PropTypes.arrayOf(PropTypes.shape({})).isRequired, onSearch: PropTypes.func.isRequired, getAutoCompleteParams: PropTypes.func.isRequired, updateSearchQuery: PropTypes.func.isRequired, initialInputValue: PropTypes.string.isRequired, onPaginationChange: PropTypes.func.isRequired, }; export default ContentPage;
Version data entries
115 entries across 115 versions & 1 rubygems