From 8484d3262dfb4fedd8b83f65d053bc21e455008d Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Wed, 25 May 2022 18:40:23 +0200 Subject: chore: use node16 moduleResolution where possible MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We can't do this in the renderer package, because we need to import MUI files that are not exported (MUI v6 is not ESM yet). Signed-off-by: Kristóf Marussy --- packages/renderer/src/components/banner/InsecureConnectionBanner.tsx | 4 ++-- packages/renderer/src/components/banner/NewWindowBanner.tsx | 4 ++-- packages/renderer/src/components/banner/NotificationBanner.tsx | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'packages/renderer/src/components/banner') diff --git a/packages/renderer/src/components/banner/InsecureConnectionBanner.tsx b/packages/renderer/src/components/banner/InsecureConnectionBanner.tsx index 0b70db6..6165153 100644 --- a/packages/renderer/src/components/banner/InsecureConnectionBanner.tsx +++ b/packages/renderer/src/components/banner/InsecureConnectionBanner.tsx @@ -27,9 +27,9 @@ import { observer } from 'mobx-react-lite'; import React from 'react'; import { useTranslation } from 'react-i18next'; -import type Service from '../../stores/Service'; +import type Service from '../../stores/Service.js'; -import NotificationBanner from './NotificationBanner'; +import NotificationBanner from './NotificationBanner.js'; function InsecureConnectionBanner({ service, diff --git a/packages/renderer/src/components/banner/NewWindowBanner.tsx b/packages/renderer/src/components/banner/NewWindowBanner.tsx index ad9d07d..b9b0e4a 100644 --- a/packages/renderer/src/components/banner/NewWindowBanner.tsx +++ b/packages/renderer/src/components/banner/NewWindowBanner.tsx @@ -29,9 +29,9 @@ import { observer } from 'mobx-react-lite'; import React from 'react'; import { Trans, useTranslation } from 'react-i18next'; -import type Service from '../../stores/Service'; +import type Service from '../../stores/Service.js'; -import NotificationBanner from './NotificationBanner'; +import NotificationBanner from './NotificationBanner.js'; function NewWindowBanner({ service, diff --git a/packages/renderer/src/components/banner/NotificationBanner.tsx b/packages/renderer/src/components/banner/NotificationBanner.tsx index 818f498..70fe693 100644 --- a/packages/renderer/src/components/banner/NotificationBanner.tsx +++ b/packages/renderer/src/components/banner/NotificationBanner.tsx @@ -18,9 +18,9 @@ * SPDX-License-Identifier: AGPL-3.0-only */ -import { Typography } from '@mui/material'; import Alert, { AlertColor } from '@mui/material/Alert'; import Box from '@mui/material/Box'; +import Typography from '@mui/material/Typography'; import { styled } from '@mui/material/styles'; import React, { ReactNode } from 'react'; import { useTranslation } from 'react-i18next'; -- cgit v1.2.3-54-g00ecf