Skip to content

Commit

Permalink
Merge branch 'CP-2908' into CP-3165
Browse files Browse the repository at this point in the history
  • Loading branch information
mkurczewski authored Oct 11, 2024
2 parents 443dd07 + 7c9c966 commit dca7d96
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 282 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,6 @@ export const HarmonyOverview: FunctionComponent<HarmonyOverviewProps> = ({
forceUpdate(releasesToInstall)
}

const synchronizeHarmonyTime = () => {
synchronizeTime()
}

return (
<>
{!genericDeviceErrorModalOpened && (
Expand Down Expand Up @@ -149,7 +145,7 @@ export const HarmonyOverview: FunctionComponent<HarmonyOverviewProps> = ({
onUpdateDownload={openCheckForUpdateModal}
serialNumber={serialNumber}
caseColour={caseColour}
synchronizeTime={synchronizeHarmonyTime}
synchronizeTime={synchronizeTime}
/>
</>
)
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import React, { useEffect, useMemo, useRef } from "react"
import { defineMessages, FormattedMessage } from "react-intl"
import { DisplayStyle } from "Core/__deprecated__/renderer/components/core/button/button.config"
import ButtonComponent from "Core/__deprecated__/renderer/components/core/button/button.component"
import { TimeSynchronizationIds } from "Core/overview/components/time-synchronization/time-synchronization-ids.enum"
import { useDispatch, useSelector } from "react-redux"
import { selectTimeSynchronizationStatus } from "Core/time-synchronization/selectors/time-synchronization-status.selector"
import { resetTimeSynchronizationStatus } from "Core/time-synchronization/actions/reset-time-synchronization-status"
Expand All @@ -30,6 +29,7 @@ import { Dispatch } from "Core/__deprecated__/renderer/store"
import styled from "styled-components"
import { getTime } from "Core/time-synchronization/actions/get-time.action"
import { selectSynchronizedTime } from "Core/time-synchronization/selectors/synchronized-time.selector"
import { TimeSynchronizationTestIds } from "e2e-test-ids"

const messages = defineMessages({
timeSynchronizationTitle: {
Expand Down Expand Up @@ -164,10 +164,10 @@ const TimeSynchronization: FunctionComponent<Props> = ({
}
labelMessage={buttonMessage}
onClick={onSynchronize}
data-testid={TimeSynchronizationIds.SynchronizeButton}
disabled={status === "loading"}
loading={status === "loading"}
Icon={status === "success" ? IconType.ButtonSuccess : undefined}
data-testid={TimeSynchronizationTestIds.SynchronizeButton}
/>
</CardAction>
</CardBody>
Expand Down

This file was deleted.

4 changes: 4 additions & 0 deletions libs/e2e-test-ids/src/e2e-test-ids.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,7 @@ export enum NewContactSupportModalTestIds {
AttachedFilesLabel = "attached-files-label",
AttachedFilesSubtext = "attached-files-subtext",
}

export enum TimeSynchronizationTestIds {
SynchronizeButton = "time-synchronization-synchronize-button",
}

0 comments on commit dca7d96

Please sign in to comment.