Skip to content

Commit 015e182

Browse files
authored
fix(protocol-designer): remove DisabledModal from PD (#16964)
* fix(protocol-designer): remove DisabledModal from PD
1 parent 9b9ed16 commit 015e182

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

protocol-designer/src/ProtocolEditor.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,15 @@ import { HTML5Backend } from 'react-dnd-html5-backend'
44
import { DIRECTION_COLUMN, Flex, OVERFLOW_AUTO } from '@opentrons/components'
55
import { PortalRoot as TopPortalRoot } from './components/portals/TopPortal'
66
import { ProtocolRoutes } from './ProtocolRoutes'
7-
import { useScreenSizeCheck } from './resources/useScreenSizeCheck'
8-
import { DisabledScreen } from './organisms/DisabledScreen'
97

108
function ProtocolEditorComponent(): JSX.Element {
11-
const isValidSize = useScreenSizeCheck()
129
return (
1310
<div
1411
id="protocol-editor"
1512
style={{ width: '100%', height: '100vh', overflow: OVERFLOW_AUTO }}
1613
>
1714
<TopPortalRoot />
1815
<Flex flexDirection={DIRECTION_COLUMN}>
19-
{!isValidSize && <DisabledScreen />}
2016
<HashRouter>
2117
<ProtocolRoutes />
2218
</HashRouter>

protocol-designer/src/organisms/DisabledScreen/index.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ import {
1515
} from '@opentrons/components'
1616
import { getTopPortalEl } from '../../components/portals/TopPortal'
1717

18+
// Note: We decided not to use this component for the release.
19+
// We will find out a better way to handle responsiveness with user's screen size issue.
20+
// This component may be used in the future. If not, we will remove it.
1821
export function DisabledScreen(): JSX.Element {
1922
const { t } = useTranslation('shared')
2023

0 commit comments

Comments
 (0)