Skip to content

Commit

Permalink
fix(protocol-designer): remove DisabledModal from PD
Browse files Browse the repository at this point in the history
remove DisabledModal from PD

close RQA-
  • Loading branch information
koji committed Nov 22, 2024
1 parent 7bbb1c2 commit 722b580
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions protocol-designer/src/ProtocolEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,15 @@ import { HTML5Backend } from 'react-dnd-html5-backend'
import { DIRECTION_COLUMN, Flex, OVERFLOW_AUTO } from '@opentrons/components'
import { PortalRoot as TopPortalRoot } from './components/portals/TopPortal'
import { ProtocolRoutes } from './ProtocolRoutes'
import { useScreenSizeCheck } from './resources/useScreenSizeCheck'
import { DisabledScreen } from './organisms/DisabledScreen'

function ProtocolEditorComponent(): JSX.Element {
const isValidSize = useScreenSizeCheck()
return (
<div
id="protocol-editor"
style={{ width: '100%', height: '100vh', overflow: OVERFLOW_AUTO }}
>
<TopPortalRoot />
<Flex flexDirection={DIRECTION_COLUMN}>
{!isValidSize && <DisabledScreen />}
<HashRouter>
<ProtocolRoutes />
</HashRouter>
Expand Down

0 comments on commit 722b580

Please sign in to comment.