From 7b20e291b4025e0bed5119c90a491cf9b53a38a1 Mon Sep 17 00:00:00 2001 From: foxriver76 Date: Mon, 9 Oct 2023 08:42:42 +0200 Subject: [PATCH 1/2] activate close button if stopped on error - closes #2143 --- src/src/components/TabContainer.tsx | 3 +-- src/src/components/TabContent.tsx | 1 - src/src/dialogs/AdaptersUpdaterDialog.jsx | 4 ++-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/src/components/TabContainer.tsx b/src/src/components/TabContainer.tsx index b49dfd687..2b9f9b3bd 100644 --- a/src/src/components/TabContainer.tsx +++ b/src/src/components/TabContainer.tsx @@ -1,9 +1,8 @@ // please do not delete React, as without it other projects could not be compiled: ReferenceError: React is not defined -import React, { ReactChildren, ReactElement } from 'react'; +import React from 'react'; import { withStyles } from '@mui/styles'; import { Grid, Paper } from '@mui/material'; import { Utils } from '@iobroker/adapter-react-v5'; -import type { ReactElementLike, ReactNodeLike } from 'prop-types'; const styles = { root: { diff --git a/src/src/components/TabContent.tsx b/src/src/components/TabContent.tsx index df72c2194..01cc1ffa3 100644 --- a/src/src/components/TabContent.tsx +++ b/src/src/components/TabContent.tsx @@ -1,4 +1,3 @@ -import type { ReactNodeLike } from 'prop-types'; import { withStyles } from '@mui/styles'; import { Grid } from '@mui/material'; import { Utils } from '@iobroker/adapter-react-v5'; diff --git a/src/src/dialogs/AdaptersUpdaterDialog.jsx b/src/src/dialogs/AdaptersUpdaterDialog.jsx index 3071a8099..2c809fb33 100644 --- a/src/src/dialogs/AdaptersUpdaterDialog.jsx +++ b/src/src/dialogs/AdaptersUpdaterDialog.jsx @@ -269,8 +269,8 @@ class AdaptersUpdaterDialog extends Component {