Persist update on board drag and drop (#328)

* chore: move dnd lib comment aligned with import

* feature: add onUpdate on board

* chore: remove multi entity pipelines

* feature: add pipelineProgressableType field

* feature: fetch progressableType in board

* feature: implement on update to persist progress change
This commit is contained in:
Sammy Teillet
2023-06-20 10:56:36 +02:00
committed by GitHub
parent 950a0b77fe
commit c120903a45
50 changed files with 308 additions and 40 deletions

View File

@ -50,8 +50,9 @@ const StyledBoardCardBody = styled.div`
`;
export const BoardCard = ({ item }: { item: Person | Company }) => {
if (item.__typename === 'Person') return <PersonBoardCard person={item} />;
if (item.__typename === 'Company') return <CompanyBoardCard company={item} />;
if (item?.__typename === 'Person') return <PersonBoardCard person={item} />;
if (item?.__typename === 'Company')
return <CompanyBoardCard company={item} />;
// @todo return card skeleton
return null;
};