diff --git a/desktop/packages/mullvad-vpn/src/renderer/components/NotificationArea.tsx b/desktop/packages/mullvad-vpn/src/renderer/components/NotificationArea.tsx index 6aac11c9d519..002f23598f41 100644 --- a/desktop/packages/mullvad-vpn/src/renderer/components/NotificationArea.tsx +++ b/desktop/packages/mullvad-vpn/src/renderer/components/NotificationArea.tsx @@ -11,16 +11,18 @@ import { InAppNotificationProvider, InAppNotificationTroubleshootInfo, InconsistentVersionNotificationProvider, - NewVersionNotificationProvider, ReconnectingNotificationProvider, UnsupportedVersionNotificationProvider, UpdateAvailableNotificationProvider, } from '../../shared/notifications'; -import { NewDeviceNotificationProvider } from '../../shared/notifications/new-device'; import { useAppContext } from '../context'; import useActions from '../lib/actionsHook'; import { transitions, useHistory } from '../lib/history'; import { formatHtml } from '../lib/html-formatter'; +import { + NewDeviceNotificationProvider, + NewVersionNotificationProvider, +} from '../lib/notifications'; import { RoutePath } from '../lib/routes'; import accountActions from '../redux/account/actions'; import { IReduxState, useSelector } from '../redux/store'; diff --git a/desktop/packages/mullvad-vpn/src/renderer/lib/notifications/index.ts b/desktop/packages/mullvad-vpn/src/renderer/lib/notifications/index.ts new file mode 100644 index 000000000000..a03af00d0622 --- /dev/null +++ b/desktop/packages/mullvad-vpn/src/renderer/lib/notifications/index.ts @@ -0,0 +1,2 @@ +export * from './new-device'; +export * from './new-version'; diff --git a/desktop/packages/mullvad-vpn/src/shared/notifications/new-device.ts b/desktop/packages/mullvad-vpn/src/renderer/lib/notifications/new-device.ts similarity index 80% rename from desktop/packages/mullvad-vpn/src/shared/notifications/new-device.ts rename to desktop/packages/mullvad-vpn/src/renderer/lib/notifications/new-device.ts index 7d0fe9f29951..f5bd085d89ac 100644 --- a/desktop/packages/mullvad-vpn/src/shared/notifications/new-device.ts +++ b/desktop/packages/mullvad-vpn/src/renderer/lib/notifications/new-device.ts @@ -1,8 +1,8 @@ import { sprintf } from 'sprintf-js'; -import { messages } from '../../shared/gettext'; -import { capitalizeEveryWord } from '../string-helpers'; -import { InAppNotification, InAppNotificationProvider } from './notification'; +import { messages } from '../../../shared/gettext'; +import { InAppNotification, InAppNotificationProvider } from '../../../shared/notifications'; +import { capitalizeEveryWord } from '../../../shared/string-helpers'; interface NewDeviceNotificationContext { shouldDisplay: boolean; diff --git a/desktop/packages/mullvad-vpn/src/shared/notifications/new-version.ts b/desktop/packages/mullvad-vpn/src/renderer/lib/notifications/new-version.ts similarity index 82% rename from desktop/packages/mullvad-vpn/src/shared/notifications/new-version.ts rename to desktop/packages/mullvad-vpn/src/renderer/lib/notifications/new-version.ts index 991266adbe59..73ccf615258e 100644 --- a/desktop/packages/mullvad-vpn/src/shared/notifications/new-version.ts +++ b/desktop/packages/mullvad-vpn/src/renderer/lib/notifications/new-version.ts @@ -1,7 +1,7 @@ -import { RoutePath } from '../../renderer/lib/routes'; -import { messages } from '../gettext'; -import { IChangelog } from '../ipc-types'; -import { InAppNotification, InAppNotificationProvider } from './notification'; +import { messages } from '../../../shared/gettext'; +import { IChangelog } from '../../../shared/ipc-types'; +import { InAppNotification, InAppNotificationProvider } from '../../../shared/notifications'; +import { RoutePath } from '../routes'; interface NewVersionNotificationContext { currentVersion: string; diff --git a/desktop/packages/mullvad-vpn/src/shared/notifications/index.ts b/desktop/packages/mullvad-vpn/src/shared/notifications/index.ts index 615ce4225023..5321917af6f3 100644 --- a/desktop/packages/mullvad-vpn/src/shared/notifications/index.ts +++ b/desktop/packages/mullvad-vpn/src/shared/notifications/index.ts @@ -7,7 +7,6 @@ export * from './disconnected'; export * from './daemon-disconnected'; export * from './error'; export * from './inconsistent-version'; -export * from './new-version'; export * from './notification'; export * from './reconnecting'; export * from './unsupported-version';