Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
smb2268 committed Sep 7, 2023
1 parent a71d233 commit 2253279
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/src/organisms/Devices/PipetteCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ export const PipetteCard = (props: PipetteCardProps): JSX.Element => {
<StyledText
as="p"
css={BANNER_LINK_CSS}
onClick={updatePipette()}
onClick={updatePipette}
/>
),
}}
Expand Down
16 changes: 9 additions & 7 deletions app/src/organisms/FirmwareUpdateModal/FirmwareUpdateTakeover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import {
useCurrentAllSubsystemUpdatesQuery,
useSubsystemUpdateQuery,
} from '@opentrons/react-api-client'

import { Portal } from '../../App/portal'
import { useIsUnboxingFlowOngoing } from '../RobotSettingsDashboard/NetworkSettings/hooks'
import { UpdateInProgressModal } from './UpdateInProgressModal'

import { UpdateNeededModal } from './UpdateNeededModal'
import type { Subsystem } from '@opentrons/api-client'

const POLL_INTERVAL_5000_MS = 5000

export function FirmwareUpdateTakeover(): JSX.Element {
Expand Down Expand Up @@ -83,11 +83,13 @@ export function FirmwareUpdateTakeover(): JSX.Element {
/>
) : null}
{externalSubsystemUpdate != null ? (
<UpdateInProgressModal
percentComplete={
externalsubsystemUpdateData?.data.updateProgress ?? 0
}
/>
<Portal level="top">
<UpdateInProgressModal
percentComplete={
externalsubsystemUpdateData?.data.updateProgress ?? 0
}
/>
</Portal>
) : null}
</>
)
Expand Down
2 changes: 1 addition & 1 deletion app/src/organisms/GripperCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export function GripperCard({
<StyledText
as="p"
css={BANNER_LINK_CSS}
onClick={setSubsystemToUpdate('gripper')}
onClick={() => setSubsystemToUpdate('gripper')}
/>
),
}}
Expand Down

0 comments on commit 2253279

Please sign in to comment.