Skip to content

Commit

Permalink
fix linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
koji committed Mar 5, 2024
1 parent c256db8 commit 343c769
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions protocol-designer/src/components/steplist/ContextMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,13 @@ import {
} from '../modals/ConfirmDeleteModal'
import { actions as stepsActions, getIsMultiSelectMode } from '../../ui/steps'
import { actions as steplistActions } from '../../steplist'
<<<<<<< HEAD
import { getTopPortalEl } from '../portals/TopPortal'
import styles from './StepItem.module.css'
import { getSavedStepForms } from '../../step-forms/selectors'
import type { ThunkDispatch } from 'redux-thunk'
import type { BaseState } from '../../types'
import type { StepIdType } from '../../form-types'
=======
import { getSavedStepForms } from '../../step-forms/selectors'
import { Portal } from '../portals/TopPortal'
import styles from './StepItem.css'

import type { StepIdType } from '../../form-types'
import type { ThunkDispatch } from 'redux-thunk'
import type { BaseState } from '../../types'
>>>>>>> edge

const MENU_OFFSET_PX = 5

Expand Down Expand Up @@ -141,7 +132,8 @@ export const ContextMenu = (props: Props): JSX.Element => {
{props.children({
makeStepOnContextMenu: makeHandleContextMenu,
})}
{!showDeleteConfirmation && visible && (
{!showDeleteConfirmation &&
visible &&
createPortal(
<div
ref={menuRoot}
Expand All @@ -162,8 +154,7 @@ export const ContextMenu = (props: Props): JSX.Element => {
</div>
</div>,
getTopPortalEl()
)
)}
)}
</div>
)
}

0 comments on commit 343c769

Please sign in to comment.