Commit 7d8b3476 authored by PDuarte's avatar PDuarte

datatable improve

parent 47e589b5
...@@ -14,7 +14,7 @@ import CustomHeader from './tableHeader' ...@@ -14,7 +14,7 @@ import CustomHeader from './tableHeader'
// import CustomHeader from './tableHeader' // import CustomHeader from './tableHeader'
const DataTableServerSide = ({allData, total, getData, serverSideColumns, linkAddButton}) => { const DataTableServerSide = ({cardTitle, allData, total, getData, serverSideColumns, linkAddButton}) => {
// ** Store Vars // ** Store Vars
const dispatch = useDispatch() const dispatch = useDispatch()
...@@ -130,7 +130,7 @@ const DataTableServerSide = ({allData, total, getData, serverSideColumns, linkAd ...@@ -130,7 +130,7 @@ const DataTableServerSide = ({allData, total, getData, serverSideColumns, linkAd
<Fragment> <Fragment>
<Card> <Card>
<CardHeader className='border-bottom'> <CardHeader className='border-bottom'>
<CardTitle tag='h4'>Projects</CardTitle> <CardTitle tag='h4'>{cardTitle}</CardTitle>
</CardHeader> </CardHeader>
<DataTable <DataTable
noHeader noHeader
......
...@@ -46,7 +46,7 @@ const CustomHeader = ({ linkAddButton, handlePerPage, rowsPerPage, handleFilter, ...@@ -46,7 +46,7 @@ const CustomHeader = ({ linkAddButton, handlePerPage, rowsPerPage, handleFilter,
</div> </div>
<Button.Ripple color='primary'> <Button.Ripple color='primary'>
<Link to={linkAddButton} className="btn-primary"> <Link to={linkAddButton} className="btn-primary">
Add New Project Add New
</Link> </Link>
</Button.Ripple> </Button.Ripple>
</Col> </Col>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment