diff options
author | 2022-10-31 16:14:30 +0530 | |
---|---|---|
committer | 2022-10-31 10:44:30 +0000 | |
commit | 87bc593ac72af503171f759fc6e4b1e9e0813039 (patch) | |
tree | 7128adb5cc48ae36104c4d3e6de219b9de1ac446 /src/containers/settings | |
parent | Convert web controls & screen to typescript (#722) (diff) | |
download | ferdium-app-87bc593ac72af503171f759fc6e4b1e9e0813039.tar.gz ferdium-app-87bc593ac72af503171f759fc6e4b1e9e0813039.tar.zst ferdium-app-87bc593ac72af503171f759fc6e4b1e9e0813039.zip |
refactor: convert global app to typescript (#723)
Diffstat (limited to 'src/containers/settings')
-rw-r--r-- | src/containers/settings/ReleaseNotesWindow.tsx | 15 |
1 files changed, 12 insertions, 3 deletions
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'; | |||
6 | import { StoresProps } from '../../@types/ferdium-components.types'; | 6 | import { StoresProps } from '../../@types/ferdium-components.types'; |
7 | import Layout from '../../components/settings/releaseNotes/ReleaseNotesLayout'; | 7 | import Layout from '../../components/settings/releaseNotes/ReleaseNotesLayout'; |
8 | import ErrorBoundary from '../../components/util/ErrorBoundary'; | 8 | import ErrorBoundary from '../../components/util/ErrorBoundary'; |
9 | import { Actions } from '../../actions/lib/actions'; | ||
10 | import { RealStores } from '../../stores'; | ||
9 | 11 | ||
10 | class SettingsContainer extends Component<StoresProps> { | 12 | interface IProps { |
13 | actions?: Actions; | ||
14 | stores?: RealStores; | ||
15 | } | ||
16 | |||
17 | @inject('stores', 'actions') | ||
18 | @observer | ||
19 | class SettingsContainer extends Component<IProps> { | ||
11 | portalRoot: any; | 20 | portalRoot: any; |
12 | 21 | ||
13 | el: HTMLDivElement; | 22 | el: HTMLDivElement; |
@@ -30,7 +39,7 @@ class SettingsContainer extends Component<StoresProps> { | |||
30 | render(): ReactPortal { | 39 | render(): ReactPortal { |
31 | return ReactDOM.createPortal( | 40 | return ReactDOM.createPortal( |
32 | <ErrorBoundary> | 41 | <ErrorBoundary> |
33 | <Layout {...this.props}> | 42 | <Layout> |
34 | <Outlet /> | 43 | <Outlet /> |
35 | </Layout> | 44 | </Layout> |
36 | </ErrorBoundary>, | 45 | </ErrorBoundary>, |
@@ -39,4 +48,4 @@ class SettingsContainer extends Component<StoresProps> { | |||
39 | } | 48 | } |
40 | } | 49 | } |
41 | 50 | ||
42 | export default inject('stores', 'actions')(observer(SettingsContainer)); | 51 | export default SettingsContainer; |