Skip to content

Commit

Permalink
#4380 - Refactor (RnaPresetGroup.tsx): Specify the type
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriiP-EPAM committed May 14, 2024
1 parent 07da0a4 commit 2b41481
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

import { calculateNucleosideOrNucleotidePreviewTop } from 'helpers';
import { useAppSelector } from 'hooks';
import { MonomerItemType } from 'ketcher-core';
import { debounce } from 'lodash';
import { MouseEvent, useCallback, useMemo } from 'react';
import {
Expand Down Expand Up @@ -96,7 +97,11 @@ export const RnaPresetGroup = ({ presets, duplicatePreset, editPreset }) => {
if (preview.nucleotide || !e.currentTarget) {
return;
}
const nucleotideParts = [preset.sugar, preset.base, preset.phosphate];
const nucleotideParts: ReadonlyArray<MonomerItemType | undefined> = [
preset.sugar,
preset.base,
preset.phosphate,
];
const cardCoordinates = e.currentTarget.getBoundingClientRect();
const previewStyle =
calculateNucleosideOrNucleotidePreviewTop(cardCoordinates);
Expand Down

0 comments on commit 2b41481

Please sign in to comment.