ingrese la descripción de la imagen aquí
AdminPanel.tsx
<Resource options={{ label: 'Transactions' }} icon={WorkIcon} name={path} list={TransactionsList} />TransactionsList.tsx
const PostList = () => ( <ResourceContextProvider value={path}> <List syncWithLocation {...props}> <Datagrid > <FullNameUserField label="User" source="userFirstName" /> <TextField label="Goal Type" source="savingGoalType" /> <TextField label="Goal name" source="savingGoalName" /> <TextField label="Target Amount" source="targetAmount" /> <SavingGoalCreationDateField label="Goal creation date" source="savingGoalCreationDate" /> <TextField label="Strategy Name" source="strategyName" /> <SavingGoalCreationDateField label="Target Date" source="targetDate" /> <TextField label="Status" source="savingGoalStatus" /> </Datagrid> </List> </ResourceContextProvider>) <Tab label="comments" path="comments"> <PostLisst /> </Tab>ingrese la descripción de la imagen aquí
No puedo mostrar el resultado de la solicitud, ¿por qué?
En
const PostList = () => (...No veo los accesorios que necesitas pasar, prueba así en su lugar:
const PostList = (props) =>