Redux connect and props
Update component props for autodetection based on sample:
class InventoryDetailsPage extends React.Component<PropsFromRedux & IWithTabs & WithTranslation & WithStyles> { .. }
const mapStateToProps = (state, ownProps) => ({
id: ownProps.routeParams.id,
inventoryCall: state.inventory.public.inventory,
});
const mapDispatch = {
getInventoryAction,
uploadInventoryAttachments,
receiveInventoryAttachmentSuccessAction,
removeInventoryAttachmentAction,
removeInventoryAttachmentsAction,
removeInventoryAction,
navigateTo,
showSnackbar,
}
type PropsFromRedux = ReturnType<typeof mapStateToProps> & typeof mapDispatch;