Skip to content

Commit

Permalink
#3276 Remove 'Edit attachment point...' from right-click context menu
Browse files Browse the repository at this point in the history
  • Loading branch information
StarlaStarla committed Sep 13, 2023
1 parent c23b971 commit 45f567c
Showing 1 changed file with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import useAtomEdit from '../hooks/useAtomEdit';
import useAtomStereo from '../hooks/useAtomStereo';
import useDelete from '../hooks/useDelete';
import { MenuItemsProps } from '../contextMenu.types';
import useRGroupAttachmentPointEdit from '../hooks/useRGroupAttachmentPointEdit';
import { updateSelectedAtoms } from 'src/script/ui/state/modal/atoms';
import { useAppContext } from 'src/hooks';
import Editor from 'src/script/editor';
Expand Down Expand Up @@ -56,11 +55,6 @@ const atomPropertiesForSubMenu: {
const AtomMenuItems: FC<MenuItemsProps> = (props) => {
const [handleEdit] = useAtomEdit();
const [handleStereo, stereoDisabled] = useAtomStereo();
const [
handleEditRGroupAttachmentPoint,
rgroupAttachmentPointDisabled,
rgroupAttachmentPointHidden,
] = useRGroupAttachmentPointEdit();
const handleDelete = useDelete();
const { getKetcherInstance } = useAppContext();
const editor = getKetcherInstance().editor as Editor;
Expand Down Expand Up @@ -92,14 +86,6 @@ const AtomMenuItems: FC<MenuItemsProps> = (props) => {
Enhanced stereochemistry...
</Item>

<Item
{...props}
disabled={rgroupAttachmentPointDisabled}
hidden={rgroupAttachmentPointHidden}
onClick={handleEditRGroupAttachmentPoint}
>
Edit attachment point...
</Item>
<Submenu
{...props}
label="Query properties"
Expand Down

0 comments on commit 45f567c

Please sign in to comment.