All files / src/containers/PatientList Patientlist.js

0% Statements 0/8
100% Branches 0/0
0% Functions 0/1
0% Lines 0/8
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45                                                                                         
/* eslint-disable spaced-comment */
import React from 'react';
import { Grid } from '@material-ui/core';
// import './Patientlist.less';
import { BasicGrid, CustomPagination } from 'pegasus/core';
// import Search from '../../../components/Search/Search';
import { ColumnObj, TableData } from './Patientlistprops';
 
require('pegasus/build-creation/registry.css');
 
const config = {
    minColumns: 12,
    parentTableClass: ['basic-grid patient-grid'],
    dataErrorMessage: 'please provide data property.',
    schemaErrorMessge: 'please provide columnDefs property.'
};
 
const Patientlist = () => {
    return (
        <React.Fragment>
            <Grid container spacing={50}>
                <Grid item xs>
                    {/* <Search /> */}
                </Grid>
                <Grid item className='pro-visit-list-grid'>
                    <BasicGrid
                        columnDefs={ColumnObj}
                        config={config}
                        data={TableData}
                    />
                    <CustomPagination
                        TOTALRECORD='4'
                        PAGESIZE='10'
                        PAGERCOUNT={3}
                        PAGEINDEX='1'
                        goEnabled={false}
                        rowPerPageSelecter={false}
                    />
                </Grid>
            </Grid>
            </React.Fragment>
    );
};
 
export default Patientlist;