From bd6fdc403d71397246dca1ec58c114647c9d4757 Mon Sep 17 00:00:00 2001 From: Iris Scholten Date: Fri, 22 Mar 2019 14:15:40 -0700 Subject: [PATCH] Remove the option to create a template --- .../components/OrgTemplatesPage.tsx | 1 - .../templates/components/TemplatesHeader.tsx | 35 ++++++++----------- 2 files changed, 15 insertions(+), 21 deletions(-) diff --git a/ui/src/organizations/components/OrgTemplatesPage.tsx b/ui/src/organizations/components/OrgTemplatesPage.tsx index dec7b812b1..56252e688a 100644 --- a/ui/src/organizations/components/OrgTemplatesPage.tsx +++ b/ui/src/organizations/components/OrgTemplatesPage.tsx @@ -40,7 +40,6 @@ class OrgTemplatesPage extends PureComponent { return ( <> void onImportTemplate: () => void showOrgDropdown?: boolean isFullPage?: boolean @@ -24,12 +23,7 @@ export default class TemplatesHeader extends PureComponent { } public render() { - const { - onCreateTemplate, - onImportTemplate, - isFullPage, - filterComponent, - } = this.props + const {isFullPage, filterComponent} = this.props if (isFullPage) { return ( @@ -37,13 +31,7 @@ export default class TemplatesHeader extends PureComponent { - - - + {this.importButton} ) } @@ -52,11 +40,7 @@ export default class TemplatesHeader extends PureComponent { {filterComponent()} - + {this.importButton} ) @@ -71,4 +55,15 @@ export default class TemplatesHeader extends PureComponent { return '' } + + private get importButton(): JSX.Element { + return ( +