|
1 | 1 | import React from "react"
|
2 |
| -import Box from "@material-ui/core/Box" |
3 | 2 | import { makeStyles } from "@material-ui/core/styles"
|
4 | 3 | import Paper from "@material-ui/core/Paper"
|
5 | 4 | import Link from "next/link"
|
6 | 5 | import { useRouter } from "next/router"
|
7 | 6 | import useSWR from "swr"
|
8 | 7 |
|
9 |
| -import { Project, Workspace } from "../../../api" |
10 |
| -import { Header } from "../../../components/Header" |
11 |
| -import { FullScreenLoader } from "../../../components/Loader/FullScreenLoader" |
12 |
| -import { Navbar } from "../../../components/Navbar" |
13 |
| -import { Footer } from "../../../components/Page" |
14 |
| -import { Column, Table } from "../../../components/Table" |
15 |
| -import { useUser } from "../../../contexts/UserContext" |
16 |
| -import { ErrorSummary } from "../../../components/ErrorSummary" |
17 |
| -import { firstOrItem } from "../../../util/array" |
18 |
| -import { EmptyState } from "../../../components/EmptyState" |
19 |
| - |
20 |
| -import { MockWorkspace } from "../../../test_helpers" |
| 8 | +import { Project, Workspace } from "../../../../api" |
| 9 | +import { Header } from "../../../../components/Header" |
| 10 | +import { FullScreenLoader } from "../../../../components/Loader/FullScreenLoader" |
| 11 | +import { Navbar } from "../../../../components/Navbar" |
| 12 | +import { Footer } from "../../../../components/Page" |
| 13 | +import { Column, Table } from "../../../../components/Table" |
| 14 | +import { useUser } from "../../../../contexts/UserContext" |
| 15 | +import { ErrorSummary } from "../../../../components/ErrorSummary" |
| 16 | +import { firstOrItem } from "../../../../util/array" |
| 17 | +import { EmptyState } from "../../../../components/EmptyState" |
21 | 18 |
|
22 | 19 | const ProjectPage: React.FC = () => {
|
23 | 20 | const styles = useStyles()
|
@@ -65,7 +62,7 @@ const ProjectPage: React.FC = () => {
|
65 | 62 | key: "name",
|
66 | 63 | name: "Name",
|
67 | 64 | renderer: (nameField: string, data: Workspace) => {
|
68 |
| - return <Link href={`/projects/${organization}/${project}/workspaces/${data.id}`}>{nameField}</Link> |
| 65 | + return <Link href={`/projects/${organization}/${project}/${data.id}`}>{nameField}</Link> |
69 | 66 | },
|
70 | 67 | },
|
71 | 68 | ]
|
|
0 commit comments