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 Sep 12, 2023
1 parent f21db33 commit e26a020
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,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 e26a020

Please sign in to comment.