@@ -48,7 +48,6 @@ import {
48
48
formatTemplateActiveDevelopers ,
49
49
formatTemplateBuildTime ,
50
50
} from "utils/templates" ;
51
- import { CreateTemplateButton } from "./CreateTemplateButton" ;
52
51
import { EmptyTemplates } from "./EmptyTemplates" ;
53
52
import { TemplatesFilter } from "./TemplatesFilter" ;
54
53
@@ -95,7 +94,6 @@ const TemplateRow: FC<TemplateRowProps> = ({ showOrganizations, template }) => {
95
94
const templatePageLink = getLink (
96
95
linkToTemplate ( template . organization_name , template . name ) ,
97
96
) ;
98
- const hasIcon = template . icon && template . icon !== "" ;
99
97
const navigate = useNavigate ( ) ;
100
98
101
99
const { css : clickableCss , ...clickableRow } = useClickableTableRow ( {
@@ -193,17 +191,14 @@ export const TemplatesPageView: FC<TemplatesPageViewProps> = ({
193
191
} ) => {
194
192
const isLoading = ! templates ;
195
193
const isEmpty = templates && templates . length === 0 ;
196
- const navigate = useNavigate ( ) ;
197
194
198
- const createTemplateAction = showOrganizations ? (
195
+ const createTemplateAction = (
199
196
< Button asChild size = "lg" >
200
197
< Link to = "/starter-templates" >
201
198
< PlusIcon />
202
199
New template
203
200
</ Link >
204
201
</ Button >
205
- ) : (
206
- < CreateTemplateButton onNavigate = { navigate } />
207
202
) ;
208
203
209
204
return (
0 commit comments