1
1
import Avatar from "@material-ui/core/Avatar"
2
2
import Box from "@material-ui/core/Box"
3
- import Button from "@material-ui/core/Button"
4
3
import Link from "@material-ui/core/Link"
5
4
import { makeStyles } from "@material-ui/core/styles"
6
5
import Table from "@material-ui/core/Table"
7
6
import TableBody from "@material-ui/core/TableBody"
8
7
import TableCell from "@material-ui/core/TableCell"
9
8
import TableHead from "@material-ui/core/TableHead"
10
9
import TableRow from "@material-ui/core/TableRow"
11
- import AddCircleOutline from "@material-ui/icons/AddCircleOutline"
12
10
import dayjs from "dayjs"
13
11
import relativeTime from "dayjs/plugin/relativeTime"
14
12
import React from "react"
@@ -22,7 +20,6 @@ import { firstLetter } from "../../util/firstLetter"
22
20
dayjs . extend ( relativeTime )
23
21
24
22
export const Language = {
25
- createButton : "Create template" ,
26
23
developerCount : ( ownerCount : number ) : string => {
27
24
return `${ ownerCount } developer${ ownerCount !== 1 ? "s" : "" } `
28
25
} ,
@@ -43,11 +40,8 @@ export interface TemplatesPageViewProps {
43
40
export const TemplatesPageView : React . FC < TemplatesPageViewProps > = ( props ) => {
44
41
const styles = useStyles ( )
45
42
return (
46
- < Stack spacing = { 4 } >
43
+ < Stack spacing = { 4 } className = { styles . root } >
47
44
< Margins >
48
- < div className = { styles . actions } >
49
- { props . canCreateTemplate && < Button startIcon = { < AddCircleOutline /> } > { Language . createButton } </ Button > }
50
- </ div >
51
45
< Table >
52
46
< TableHead >
53
47
< TableRow >
@@ -103,15 +97,8 @@ export const TemplatesPageView: React.FC<TemplatesPageViewProps> = (props) => {
103
97
}
104
98
105
99
const useStyles = makeStyles ( ( theme ) => ( {
106
- actions : {
100
+ root : {
107
101
marginTop : theme . spacing ( 3 ) ,
108
- marginBottom : theme . spacing ( 3 ) ,
109
- display : "flex" ,
110
- height : theme . spacing ( 6 ) ,
111
-
112
- "& button" : {
113
- marginLeft : "auto" ,
114
- } ,
115
102
} ,
116
103
welcome : {
117
104
paddingTop : theme . spacing ( 12 ) ,
0 commit comments