Feature/user management
This commit is contained in:
18
src/core/components/DataTable/index.js
Normal file
18
src/core/components/DataTable/index.js
Normal file
@@ -0,0 +1,18 @@
|
||||
import DataTable_Main from "./Main";
|
||||
import DataTableProvider from "@/lib/contexts/DataTable";
|
||||
|
||||
const DataTable = (props) => {
|
||||
return (
|
||||
<DataTableProvider
|
||||
user_id={props.user_id}
|
||||
page_name={props.page_name}
|
||||
table_name={props.table_name}
|
||||
columns={props.columns}
|
||||
initialSort={props.sorting}
|
||||
>
|
||||
<DataTable_Main {...props} />
|
||||
</DataTableProvider>
|
||||
);
|
||||
};
|
||||
|
||||
export default DataTable;
|
||||
Reference in New Issue
Block a user