Skip to content

Commit 08069d3

Browse files
committed
Route to templates
1 parent c63c563 commit 08069d3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

site/src/pages/WorkspacesPage/WorkspacesPageView.tsx

+5-3
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ export const WorkspacesPageView: React.FC<WorkspacesPageViewProps> = (props) =>
4040
<Stack spacing={4}>
4141
<Margins>
4242
<div className={styles.actions}>
43-
<Button startIcon={<AddCircleOutline />}>{Language.createButton}</Button>
43+
<Link component={RouterLink} to="/templates">
44+
<Button startIcon={<AddCircleOutline />}>{Language.createButton}</Button>
45+
</Link>
4446
</div>
4547
<Table>
4648
<TableHead>
@@ -58,7 +60,7 @@ export const WorkspacesPageView: React.FC<WorkspacesPageViewProps> = (props) =>
5860
<TableCell colSpan={999}>
5961
<div className={styles.welcome}>
6062
<span>
61-
<Link component={RouterLink} to="/workspaces/new">
63+
<Link component={RouterLink} to="/templates">
6264
Create a workspace
6365
</Link>
6466
&nbsp;{Language.emptyView}
@@ -183,7 +185,7 @@ const useStyles = makeStyles((theme) => ({
183185
display: "flex",
184186
height: theme.spacing(6),
185187

186-
"& button": {
188+
"& > *": {
187189
marginLeft: "auto",
188190
},
189191
},

0 commit comments

Comments
 (0)