Skip to content

feat: Add templates page #1510

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
May 18, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Route to templates
  • Loading branch information
kylecarbs committed May 17, 2022
commit 08069d39c6730c5a43df4f1269ce216ebfd58e90
8 changes: 5 additions & 3 deletions site/src/pages/WorkspacesPage/WorkspacesPageView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ export const WorkspacesPageView: React.FC<WorkspacesPageViewProps> = (props) =>
<Stack spacing={4}>
<Margins>
<div className={styles.actions}>
<Button startIcon={<AddCircleOutline />}>{Language.createButton}</Button>
<Link component={RouterLink} to="/templates">
<Button startIcon={<AddCircleOutline />}>{Language.createButton}</Button>
</Link>
</div>
<Table>
<TableHead>
Expand All @@ -58,7 +60,7 @@ export const WorkspacesPageView: React.FC<WorkspacesPageViewProps> = (props) =>
<TableCell colSpan={999}>
<div className={styles.welcome}>
<span>
<Link component={RouterLink} to="/workspaces/new">
<Link component={RouterLink} to="/templates">
Create a workspace
</Link>
&nbsp;{Language.emptyView}
Expand Down Expand Up @@ -183,7 +185,7 @@ const useStyles = makeStyles((theme) => ({
display: "flex",
height: theme.spacing(6),

"& button": {
"& > *": {
marginLeft: "auto",
},
},
Expand Down