File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed
site/src/pages/StarterTemplatePage Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change
1
+ import Button from "@material-ui/core/Button"
1
2
import { makeStyles } from "@material-ui/core/styles"
2
3
import { Loader } from "components/Loader/Loader"
3
4
import { Margins } from "components/Margins/Margins"
@@ -9,6 +10,8 @@ import {
9
10
} from "components/PageHeader/PageHeader"
10
11
import { FC } from "react"
11
12
import { StarterTemplateContext } from "xServices/starterTemplates/starterTemplateXService"
13
+ import EyeIcon from "@material-ui/icons/VisibilityOutlined"
14
+ import PlusIcon from "@material-ui/icons/AddOutlined"
12
15
13
16
export interface StarterTemplatePageViewProps {
14
17
context : StarterTemplateContext
@@ -26,7 +29,22 @@ export const StarterTemplatePageView: FC<StarterTemplatePageViewProps> = ({
26
29
27
30
return (
28
31
< Margins >
29
- < PageHeader >
32
+ < PageHeader
33
+ actions = {
34
+ < >
35
+ < Button
36
+ component = "a"
37
+ target = "_blank"
38
+ href = { starterTemplate . url }
39
+ rel = "noreferrer"
40
+ startIcon = { < EyeIcon /> }
41
+ >
42
+ View source code
43
+ </ Button >
44
+ < Button startIcon = { < PlusIcon /> } > Use template</ Button >
45
+ </ >
46
+ }
47
+ >
30
48
< PageHeaderTitle > { starterTemplate . name } </ PageHeaderTitle >
31
49
< PageHeaderSubtitle > { starterTemplate . description } </ PageHeaderSubtitle >
32
50
</ PageHeader >
You can’t perform that action at this time.
0 commit comments