From a051331680b21f20201a47601d69505a4cfa9e40 Mon Sep 17 00:00:00 2001
From: muhamedsalih-tw <104364298+muhamedsalih-tw@users.noreply.github.com>
Date: Sat, 19 Nov 2022 15:21:09 +0530
Subject: Transform service components to ts (#778)

---
 src/components/services/content/Services.tsx | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

(limited to 'src/components/services/content/Services.tsx')

diff --git a/src/components/services/content/Services.tsx b/src/components/services/content/Services.tsx
index 53cddd907..fa26edaa6 100644
--- a/src/components/services/content/Services.tsx
+++ b/src/components/services/content/Services.tsx
@@ -42,8 +42,8 @@ interface IProps extends WrappedComponentProps, WithStylesProps<typeof styles> {
   services?: Service[];
   setWebviewReference: () => void;
   detachService: () => void;
-  handleIPCMessage: () => void;
-  openWindow: () => void;
+  // handleIPCMessage: () => void; // TODO - [TECH DEBT] later check it
+  // openWindow: () => void; // TODO - [TECH DEBT] later check it
   reload: (options: { serviceId: string }) => void;
   openSettings: (options: { path: string }) => void;
   update: (options: {
@@ -61,7 +61,7 @@ interface IState {
 
 @observer
 class Services extends Component<IProps, IState> {
-  _confettiTimeout: number | null = null;
+  confettiTimeout: number | null = null;
 
   constructor(props: IProps) {
     super(props);
@@ -72,7 +72,7 @@ class Services extends Component<IProps, IState> {
   }
 
   componentDidMount(): void {
-    this._confettiTimeout = window.setTimeout(() => {
+    this.confettiTimeout = window.setTimeout(() => {
       this.setState({
         showConfetti: false,
       });
@@ -80,18 +80,18 @@ class Services extends Component<IProps, IState> {
   }
 
   componentWillUnmount(): void {
-    if (this._confettiTimeout) {
-      clearTimeout(this._confettiTimeout);
+    if (this.confettiTimeout) {
+      clearTimeout(this.confettiTimeout);
     }
   }
 
   render(): ReactElement {
     const {
       services = [],
-      handleIPCMessage,
+      // handleIPCMessage, // TODO - [TECH DEBT] later check it
       setWebviewReference,
       detachService,
-      openWindow,
+      // openWindow, // TODO - [TECH DEBT] later check it
       reload,
       openSettings,
       update,
@@ -136,10 +136,10 @@ class Services extends Component<IProps, IState> {
             <ServiceView
               key={service.id}
               service={service}
-              handleIPCMessage={handleIPCMessage}
-              setWebviewReference={setWebviewReference}
+              // handleIPCMessage={handleIPCMessage} //  TODO - [TECH DEBT][PROPS NOT EXIST IN COMPONENT] later check it
+              setWebviewRef={setWebviewReference}
               detachService={detachService}
-              openWindow={openWindow}
+              // openWindow={openWindow} //  TODO - [TECH DEBT][PROPS NOT EXIST IN COMPONENT] later check it
               reload={() => reload({ serviceId: service.id })}
               edit={() => openSettings({ path: `services/edit/${service.id}` })}
               enable={() =>
-- 
cgit v1.2.3-70-g09d2

