Skip to content

Commit

Permalink
chore(community-templates): rename communitytemplateoverlaycontents =…
Browse files Browse the repository at this point in the history
…> communitytemplateresourcecontent
  • Loading branch information
hoorayimhelping committed Aug 28, 2020
1 parent 9e15d8f commit a9e44fd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions ui/src/templates/components/CommunityTemplateOverlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {withRouter, RouteComponentProps} from 'react-router-dom'
import {Alignment, Orientation, Overlay, Tabs} from '@influxdata/clockface'
import {CommunityTemplateInstallInstructions} from 'src/templates/components/CommunityTemplateInstallInstructions'
import {CommunityTemplateReadme} from 'src/templates/components/CommunityTemplateReadme'
import {CommunityTemplateOverlayContents} from 'src/templates/components/CommunityTemplateOverlayContents'
import {CommunityTemplateResourceContent} from 'src/templates/components/CommunityTemplateResourceContent'

// Types
import {ComponentStatus} from '@influxdata/clockface'
Expand Down Expand Up @@ -83,7 +83,7 @@ class CommunityTemplateOverlayUnconnected extends PureComponent<Props, State> {
/>
</Tabs.Tabs>
{this.state.activeTab === Tab.IncludedResources ? (
<CommunityTemplateOverlayContents />
<CommunityTemplateResourceContent />
) : (
<CommunityTemplateReadme directory={templateDirectory} />
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import {event} from 'src/cloud/utils/reporting'
type ReduxProps = ConnectedProps<typeof connector>
type Props = ReduxProps

class CommunityTemplateOverlayContentsUnconnected extends PureComponent<Props> {
class CommunityTemplateResourceContentUnconnected extends PureComponent<Props> {
render() {
const {summary} = this.props
if (!Object.keys(summary).length) {
Expand Down Expand Up @@ -398,6 +398,6 @@ const mdtp = {

const connector = connect(mstp, mdtp)

export const CommunityTemplateOverlayContents = connector(
CommunityTemplateOverlayContentsUnconnected
export const CommunityTemplateResourceContent = connector(
CommunityTemplateResourceContentUnconnected
)

0 comments on commit a9e44fd

Please sign in to comment.