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:
@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user