diff --git a/app/components/StepsOfStepper/IntermediateStep.spec.tsx b/app/components/StepsOfStepper/IntermediateStep.spec.tsx index 15d39e9..05f2d53 100644 --- a/app/components/StepsOfStepper/IntermediateStep.spec.tsx +++ b/app/components/StepsOfStepper/IntermediateStep.spec.tsx @@ -25,7 +25,6 @@ jest.mock('electron', () => { waitingForConnectionSharingSession: { callPeer: jest.fn(), }, - changeSharingSessionStatusToSharing: jest.fn(), }; } return {}; diff --git a/app/components/StepsOfStepper/IntermediateStep.tsx b/app/components/StepsOfStepper/IntermediateStep.tsx index 7daaac8..2c947c2 100644 --- a/app/components/StepsOfStepper/IntermediateStep.tsx +++ b/app/components/StepsOfStepper/IntermediateStep.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { remote } from 'electron'; +import { ipcRenderer, remote } from 'electron'; import { Button, Text } from '@blueprintjs/core'; import { useTranslation } from 'react-i18next'; import { TFunction } from 'i18next'; @@ -9,11 +9,8 @@ import ScanQRStep from './ScanQRStep'; import ChooseAppOrScreeenStep from './ChooseAppOrScreeenStep'; import ConfirmStep from './ConfirmStep'; import ConnectedDevicesService from '../../features/ConnectedDevicesService'; -import SharingSessionService from '../../features/SharingSessionService'; +import { IpcEvents } from '../../main/IpcEvents.enum'; -const sharingSessionService = remote.getGlobal( - 'sharingSessionService' -) as SharingSessionService; const connectedDevicesService = remote.getGlobal( 'connectedDevicesService' ) as ConnectedDevicesService; @@ -126,73 +123,43 @@ export default function IntermediateStep(props: IntermediateStepProps) { ) : ( <> ) - // activeStep === 0 ? ( - // - // ) : ( - // <> - // ) } - { - /**/ - activeStep !== 0 ? ( - - - - - - ) : ( - <> - ) - } + }} + style={{ + display: activeStep === 1 ? 'none' : 'inline', + borderRadius: '100px', + width: '300px', + textAlign: 'center', + }} + rightIcon={ + isConfirmStep(activeStep, steps) + ? 'small-tick' + : 'chevron-right' + } + > + {isConfirmStep(activeStep, steps) + ? t('Confirm Button Text') + : 'Next'} + + + + ) : ( + <> + )}