complete all 4 pages with their table and make a adapter for datatable
This commit is contained in:
13
src/core/components/DataTableWithAuth.jsx
Normal file
13
src/core/components/DataTableWithAuth.jsx
Normal file
@@ -0,0 +1,13 @@
|
||||
import DataTable from "@/core/components/DataTable";
|
||||
import { useAuth } from "@/lib/contexts/auth";
|
||||
|
||||
const DataTableWithAuth = (props) => {
|
||||
const { user } = useAuth();
|
||||
return (
|
||||
<DataTable
|
||||
user_id={user.username}
|
||||
{...props}
|
||||
/>
|
||||
);
|
||||
};
|
||||
export default DataTableWithAuth;
|
||||
Reference in New Issue
Block a user