From 4b62661d58e56f03e6d4888df80473150126e5a8 Mon Sep 17 00:00:00 2001
From: Alphrag <34252790+Alphrag@users.noreply.github.com>
Date: Tue, 30 May 2023 23:49:55 +0100
Subject: Revert "Update react-router-dom, react-tooltip &
 react-transition-group latest version (#1199)"

This reverts commit 05ddc542cc6a5a309d90350636cc1d2aee999c19.
---
 src/components/settings/services/ServiceItem.tsx | 20 +++++---------------
 1 file changed, 5 insertions(+), 15 deletions(-)

(limited to 'src/components/settings/services/ServiceItem.tsx')

diff --git a/src/components/settings/services/ServiceItem.tsx b/src/components/settings/services/ServiceItem.tsx
index babe06b5a..bf2dfa9da 100644
--- a/src/components/settings/services/ServiceItem.tsx
+++ b/src/components/settings/services/ServiceItem.tsx
@@ -1,6 +1,6 @@
 import { Component, ReactElement } from 'react';
 import { defineMessages, injectIntl, WrappedComponentProps } from 'react-intl';
-import { Tooltip as ReactTooltip } from 'react-tooltip';
+import ReactTooltip from 'react-tooltip';
 import { observer } from 'mobx-react';
 import classnames from 'classnames';
 import { mdiBellOff, mdiMessageBulletedOff, mdiPower } from '@mdi/js';
@@ -73,8 +73,7 @@ class ServiceItem extends Component<IProps> {
           {service.isMuted && (
             <Icon
               icon={mdiBellOff}
-              data-tooltip-id="tooltip-service-item"
-              data-tooltip-content={intl.formatMessage(messages.tooltipIsMuted)}
+              data-tip={intl.formatMessage(messages.tooltipIsMuted)}
             />
           )}
         </td>
@@ -86,10 +85,7 @@ class ServiceItem extends Component<IProps> {
           {!service.isEnabled && (
             <Icon
               icon={mdiPower}
-              data-tooltip-id="tooltip-service-item"
-              data-tooltip-content={intl.formatMessage(
-                messages.tooltipIsDisabled,
-              )}
+              data-tip={intl.formatMessage(messages.tooltipIsDisabled)}
             />
           )}
         </td>
@@ -101,18 +97,12 @@ class ServiceItem extends Component<IProps> {
           {!service.isNotificationEnabled && (
             <Icon
               icon={mdiMessageBulletedOff}
-              data-tooltip-id="tooltip-service-item"
-              data-tooltip-content={intl.formatMessage(
+              data-tip={intl.formatMessage(
                 messages.tooltipNotificationsDisabled,
               )}
             />
           )}
-          <ReactTooltip
-            id="tooltip-service-item"
-            place="right"
-            variant="dark"
-            style={{ height: 'auto' }}
-          />
+          <ReactTooltip place="top" type="dark" effect="solid" />
         </td>
       </tr>
     );
-- 
cgit v1.2.3-70-g09d2

