diff options
author | 2021-12-04 10:51:16 +0100 | |
---|---|---|
committer | 2021-12-04 10:51:16 +0100 | |
commit | 11c992b04f3cad6badf0ae86da65f490e31dd359 (patch) | |
tree | 749e63f6ba3e9bea48c186b5d8502d328edfd276 /src/features/workspaces/containers | |
parent | 5.6.4-nightly.24 [skip ci] (diff) | |
download | ferdium-app-11c992b04f3cad6badf0ae86da65f490e31dd359.tar.gz ferdium-app-11c992b04f3cad6badf0ae86da65f490e31dd359.tar.zst ferdium-app-11c992b04f3cad6badf0ae86da65f490e31dd359.zip |
chore: upgrade react-jss to latest (#2302)
Diffstat (limited to 'src/features/workspaces/containers')
-rw-r--r-- | src/features/workspaces/containers/EditWorkspaceScreen.tsx | 4 | ||||
-rw-r--r-- | src/features/workspaces/containers/WorkspacesScreen.tsx | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/src/features/workspaces/containers/EditWorkspaceScreen.tsx b/src/features/workspaces/containers/EditWorkspaceScreen.tsx index 8e8f8179d..0351ddafb 100644 --- a/src/features/workspaces/containers/EditWorkspaceScreen.tsx +++ b/src/features/workspaces/containers/EditWorkspaceScreen.tsx | |||
@@ -17,8 +17,6 @@ type Props = { | |||
17 | }; | 17 | }; |
18 | }; | 18 | }; |
19 | 19 | ||
20 | @inject('stores', 'actions') | ||
21 | @observer | ||
22 | class EditWorkspaceScreen extends Component<Props> { | 20 | class EditWorkspaceScreen extends Component<Props> { |
23 | // @ts-expect-error Not all code paths return a value. | 21 | // @ts-expect-error Not all code paths return a value. |
24 | onDelete = () => { | 22 | onDelete = () => { |
@@ -58,4 +56,4 @@ class EditWorkspaceScreen extends Component<Props> { | |||
58 | } | 56 | } |
59 | } | 57 | } |
60 | 58 | ||
61 | export default EditWorkspaceScreen; | 59 | export default inject('stores', 'actions')(observer(EditWorkspaceScreen)); |
diff --git a/src/features/workspaces/containers/WorkspacesScreen.tsx b/src/features/workspaces/containers/WorkspacesScreen.tsx index a07e92439..33808b69d 100644 --- a/src/features/workspaces/containers/WorkspacesScreen.tsx +++ b/src/features/workspaces/containers/WorkspacesScreen.tsx | |||
@@ -17,8 +17,6 @@ type Props = { | |||
17 | }; | 17 | }; |
18 | }; | 18 | }; |
19 | 19 | ||
20 | @inject('stores', 'actions') | ||
21 | @observer | ||
22 | class WorkspacesScreen extends Component<Props> { | 20 | class WorkspacesScreen extends Component<Props> { |
23 | render() { | 21 | render() { |
24 | const { actions } = this.props; | 22 | const { actions } = this.props; |
@@ -38,4 +36,4 @@ class WorkspacesScreen extends Component<Props> { | |||
38 | } | 36 | } |
39 | } | 37 | } |
40 | 38 | ||
41 | export default WorkspacesScreen; | 39 | export default inject('stores', 'actions')(observer(WorkspacesScreen)); |