diff options
author | 2022-11-17 05:45:39 +0530 | |
---|---|---|
committer | 2022-11-17 00:15:39 +0000 | |
commit | d9502c7516bc2d4ae467c6ea8a2e4816b0885f37 (patch) | |
tree | b339c587a5529ac26d52cfc12d9972a8a00255e6 /src/features/workspaces/containers/WorkspacesScreen.tsx | |
parent | Transform JSX components to TSX (#755) (diff) | |
download | ferdium-app-d9502c7516bc2d4ae467c6ea8a2e4816b0885f37.tar.gz ferdium-app-d9502c7516bc2d4ae467c6ea8a2e4816b0885f37.tar.zst ferdium-app-d9502c7516bc2d4ae467c6ea8a2e4816b0885f37.zip |
Transfrom workspace components to ts (#775)
Diffstat (limited to 'src/features/workspaces/containers/WorkspacesScreen.tsx')
-rw-r--r-- | src/features/workspaces/containers/WorkspacesScreen.tsx | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/features/workspaces/containers/WorkspacesScreen.tsx b/src/features/workspaces/containers/WorkspacesScreen.tsx index d43dc5efa..39f19935f 100644 --- a/src/features/workspaces/containers/WorkspacesScreen.tsx +++ b/src/features/workspaces/containers/WorkspacesScreen.tsx | |||
@@ -10,8 +10,13 @@ import { | |||
10 | getUserWorkspacesRequest, | 10 | getUserWorkspacesRequest, |
11 | updateWorkspaceRequest, | 11 | updateWorkspaceRequest, |
12 | } from '../api'; | 12 | } from '../api'; |
13 | import Workspace from '../models/Workspace'; | ||
13 | 14 | ||
14 | class WorkspacesScreen extends Component<StoresProps> { | 15 | interface IProps extends StoresProps {} |
16 | |||
17 | @inject('stores', 'actions') | ||
18 | @observer | ||
19 | class WorkspacesScreen extends Component<IProps> { | ||
15 | render() { | 20 | render() { |
16 | const { actions } = this.props; | 21 | const { actions } = this.props; |
17 | return ( | 22 | return ( |
@@ -23,11 +28,13 @@ class WorkspacesScreen extends Component<StoresProps> { | |||
23 | deleteWorkspaceRequest={deleteWorkspaceRequest} | 28 | deleteWorkspaceRequest={deleteWorkspaceRequest} |
24 | updateWorkspaceRequest={updateWorkspaceRequest} | 29 | updateWorkspaceRequest={updateWorkspaceRequest} |
25 | onCreateWorkspaceSubmit={data => actions.workspaces.create(data)} | 30 | onCreateWorkspaceSubmit={data => actions.workspaces.create(data)} |
26 | onWorkspaceClick={w => actions.workspaces.edit({ workspace: w })} | 31 | onWorkspaceClick={(workspace: Workspace) => |
32 | actions.workspaces.edit({ workspace }) | ||
33 | } | ||
27 | /> | 34 | /> |
28 | </ErrorBoundary> | 35 | </ErrorBoundary> |
29 | ); | 36 | ); |
30 | } | 37 | } |
31 | } | 38 | } |
32 | 39 | ||
33 | export default inject('stores', 'actions')(observer(WorkspacesScreen)); | 40 | export default WorkspacesScreen; |