File tree 3 files changed +17
-4
lines changed 3 files changed +17
-4
lines changed Original file line number Diff line number Diff line change
1
+ import React from "react"
2
+
3
+ import * as API from "../../api"
4
+
5
+ export interface WorkspaceProps {
6
+ workspace : API . Workspace
7
+ }
8
+
9
+ /**
10
+ * Workspace is the top-level component for viewing an individual workspace
11
+ */
12
+ export const Workspace : React . FC < WorkspaceProps > = ( { workspace } ) => {
13
+ return < div > Hello, workspace: < span > { workspace . name } </ span > </ div >
14
+ }
Original file line number Diff line number Diff line change
1
+ export * from "./Workspace"
Original file line number Diff line number Diff line change @@ -8,9 +8,7 @@ import { useUser } from "../../../contexts/UserContext"
8
8
import { firstOrItem } from "../../../util/array"
9
9
import { ErrorSummary } from "../../../components/ErrorSummary"
10
10
import { FullScreenLoader } from "../../../components/Loader/FullScreenLoader"
11
-
12
- //import { Workspace } from "../../components/Workspace"
13
- //import { MockWorkspace } from "../../test_helpers"
11
+ import { Workspace } from "../../../components/Workspace"
14
12
15
13
import * as API from "../../../api"
16
14
@@ -47,7 +45,7 @@ const WorkspacesPage: React.FC = () => {
47
45
< Navbar user = { me } onSignOut = { signOut } />
48
46
49
47
< div className = { styles . inner } >
50
- < div > Hello, world </ div >
48
+ < Workspace workspace = { workspace } / >
51
49
</ div >
52
50
53
51
< Footer />
You can’t perform that action at this time.
0 commit comments