refactor: CommunityTemplateName => CommunityTemplateInstallInstructions
parent
f3981d7996
commit
0eb12d8232
|
@ -15,7 +15,8 @@ import {
|
|||
AlignItems,
|
||||
InfluxColors,
|
||||
} from '@influxdata/clockface'
|
||||
import CommunityTemplateNameIcon from 'src/templates/components/CommunityTemplateNameIcon'
|
||||
|
||||
import {CommunityTemplateInstallInstructionsIcon} from 'src/templates/components/CommunityTemplateInstallInstructionsIcon'
|
||||
|
||||
interface Props {
|
||||
templateName: string
|
||||
|
@ -23,9 +24,7 @@ interface Props {
|
|||
onClickInstall?: () => void
|
||||
}
|
||||
|
||||
import {} from 'react'
|
||||
|
||||
const CommunityTemplateName: FC<Props> = ({
|
||||
export const CommunityTemplateInstallInstructions: FC<Props> = ({
|
||||
templateName,
|
||||
resourceCount,
|
||||
onClickInstall,
|
||||
|
@ -56,7 +55,7 @@ const CommunityTemplateName: FC<Props> = ({
|
|||
direction={FlexDirection.Row}
|
||||
alignItems={AlignItems.Center}
|
||||
>
|
||||
<CommunityTemplateNameIcon
|
||||
<CommunityTemplateInstallInstructionsIcon
|
||||
strokeWidth={2}
|
||||
strokeColor={InfluxColors.Neutrino}
|
||||
width={54}
|
||||
|
@ -87,5 +86,3 @@ const CommunityTemplateName: FC<Props> = ({
|
|||
</Panel>
|
||||
)
|
||||
}
|
||||
|
||||
export default CommunityTemplateName
|
|
@ -8,7 +8,7 @@ interface Props {
|
|||
height: number
|
||||
}
|
||||
|
||||
const CommunityTemplateNameIcon: FC<Props> = ({
|
||||
export const CommunityTemplateInstallInstructionsIcon: FC<Props> = ({
|
||||
strokeColor,
|
||||
fillColor = 'none',
|
||||
strokeWidth = 2,
|
||||
|
@ -73,5 +73,3 @@ const CommunityTemplateNameIcon: FC<Props> = ({
|
|||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export default CommunityTemplateNameIcon
|
|
@ -4,7 +4,7 @@ import {withRouter, RouteComponentProps} from 'react-router-dom'
|
|||
|
||||
// Components
|
||||
import {Alignment, Orientation, Overlay, Tabs} from '@influxdata/clockface'
|
||||
import CommunityTemplateName from 'src/templates/components/CommunityTemplateName'
|
||||
import {CommunityTemplateInstallInstructions} from 'src/templates/components/CommunityTemplateInstallInstructions'
|
||||
import {CommunityTemplateReadme} from 'src/templates/components/CommunityTemplateReadme'
|
||||
import {CommunityTemplateOverlayContents} from 'src/templates/components/CommunityTemplateOverlayContents'
|
||||
|
||||
|
@ -54,7 +54,7 @@ class CommunityTemplateOverlayUnconnected extends PureComponent<Props, State> {
|
|||
onDismiss={this.onDismiss}
|
||||
/>
|
||||
<Overlay.Body>
|
||||
<CommunityTemplateName
|
||||
<CommunityTemplateInstallInstructions
|
||||
templateName={templateName}
|
||||
resourceCount={resourceCount}
|
||||
onClickInstall={onInstall}
|
||||
|
|
Loading…
Reference in New Issue