From 87bc593ac72af503171f759fc6e4b1e9e0813039 Mon Sep 17 00:00:00 2001
From: Balaji Vijayakumar <kuttibalaji.v6@gmail.com>
Date: Mon, 31 Oct 2022 16:14:30 +0530
Subject: refactor: convert global app to typescript (#723)

---
 src/containers/settings/ReleaseNotesWindow.tsx | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

(limited to 'src/containers/settings/ReleaseNotesWindow.tsx')

diff --git a/src/containers/settings/ReleaseNotesWindow.tsx b/src/containers/settings/ReleaseNotesWindow.tsx
index 3e43727d0..ea7b952d2 100644
--- a/src/containers/settings/ReleaseNotesWindow.tsx
+++ b/src/containers/settings/ReleaseNotesWindow.tsx
@@ -6,8 +6,17 @@ import { Outlet } from 'react-router-dom';
 import { StoresProps } from '../../@types/ferdium-components.types';
 import Layout from '../../components/settings/releaseNotes/ReleaseNotesLayout';
 import ErrorBoundary from '../../components/util/ErrorBoundary';
+import { Actions } from '../../actions/lib/actions';
+import { RealStores } from '../../stores';
 
-class SettingsContainer extends Component<StoresProps> {
+interface IProps {
+  actions?: Actions;
+  stores?: RealStores;
+}
+
+@inject('stores', 'actions')
+@observer
+class SettingsContainer extends Component<IProps> {
   portalRoot: any;
 
   el: HTMLDivElement;
@@ -30,7 +39,7 @@ class SettingsContainer extends Component<StoresProps> {
   render(): ReactPortal {
     return ReactDOM.createPortal(
       <ErrorBoundary>
-        <Layout {...this.props}>
+        <Layout>
           <Outlet />
         </Layout>
       </ErrorBoundary>,
@@ -39,4 +48,4 @@ class SettingsContainer extends Component<StoresProps> {
   }
 }
 
-export default inject('stores', 'actions')(observer(SettingsContainer));
+export default SettingsContainer;
-- 
cgit v1.2.3-70-g09d2

