Skip to content

Commit

Permalink
#2332 - Add peptide monomers to canvas (by click)
Browse files Browse the repository at this point in the history
- added an ability  to add peptides on canvas and move by drag n drop
  • Loading branch information
rrodionov91 committed Aug 9, 2023
1 parent 6bfc0f9 commit db35486
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,18 @@ const MonomerGroup = ({
}
};

const selectMonomer = (monomer: MonomerItemType) => {
switch (libraryName) {
case 'PEPTIDE':
editor.events.selectPeptide.dispatch(monomer);
onItemClick(monomer);
break;
default:
onItemClick(monomer);
break;
}
};

return (
<GroupContainer>
{title && (
Expand Down

0 comments on commit db35486

Please sign in to comment.