1
- import Link from "@mui/material/Link" ;
2
1
import { Workspace } from "api/typesGenerated" ;
3
2
import { PaginationWidgetBase } from "components/PaginationWidget/PaginationWidgetBase" ;
4
3
import { ComponentProps , FC } from "react" ;
5
- import { Link as RouterLink } from "react-router-dom" ;
6
4
import { Margins } from "components/Margins/Margins" ;
7
- import {
8
- PageHeader ,
9
- PageHeaderSubtitle ,
10
- PageHeaderTitle ,
11
- } from "components/PageHeader/PageHeader" ;
5
+ import { PageHeader , PageHeaderTitle } from "components/PageHeader/PageHeader" ;
12
6
import { Stack } from "components/Stack/Stack" ;
13
7
import { WorkspaceHelpTooltip } from "./WorkspaceHelpTooltip" ;
14
8
import { WorkspacesTable } from "pages/WorkspacesPage/WorkspacesTable" ;
@@ -24,6 +18,7 @@ import {
24
18
import Box from "@mui/material/Box" ;
25
19
import Button from "@mui/material/Button" ;
26
20
import DeleteOutlined from "@mui/icons-material/DeleteOutlined" ;
21
+ import { WorkspacesButton } from "components/WorkspacesButton/WorkspacesButton" ;
27
22
28
23
export const Language = {
29
24
pageTitle : "Workspaces" ,
@@ -78,21 +73,13 @@ export const WorkspacesPageView: FC<
78
73
79
74
return (
80
75
< Margins >
81
- < PageHeader >
76
+ < PageHeader actions = { canCheckWorkspaces && < WorkspacesButton /> } >
82
77
< PageHeaderTitle >
83
78
< Stack direction = "row" spacing = { 1 } alignItems = "center" >
84
79
< span > { Language . pageTitle } </ span >
85
80
< WorkspaceHelpTooltip />
86
81
</ Stack >
87
82
</ PageHeaderTitle >
88
-
89
- < PageHeaderSubtitle >
90
- { Language . createANewWorkspace }
91
- < Link component = { RouterLink } to = "/templates" >
92
- { Language . template }
93
- </ Link >
94
- .
95
- </ PageHeaderSubtitle >
96
83
</ PageHeader >
97
84
98
85
< Stack >
0 commit comments