Commit 8217011a authored by Marjolaine Bodin's avatar Marjolaine Bodin
Browse files

#507 adapt my data to pagination

parent 16d72de9
import React from 'react';
import { useResource } from 'rest-hooks';
import InvestigationResource from '../../resources/investigation';
import InvestigationTable from '../../components/Investigation/InvestigationTable';
function MyInvestigationsTable() {
const myInvestigations = useResource(InvestigationResource.listShape(), {
filter: 'participant',
});
// TODO replace `inv.visitId` with `inv.type !== "PROPOSAL"` when available
const mySessions = myInvestigations.filter((inv) => {
/* const mySessions = myInvestigations.filter((inv) => {
return inv.visitId !== 'PROPOSAL';
});
});*/
return (
<InvestigationTable
investigations={mySessions}
filter="participant"
withInvestigationStats
withProposalLinks
/>
......
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