Skip to content

Commit 1293696

Browse files
authored
feat(CLIWizard): add cli commands resource card (#5203)
1 parent 3938c60 commit 1293696

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

src/homepageExperience/components/steps/Finish.tsx

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,26 @@ export const Finish = (props: OwnProps) => {
129129
InfluxDB.
130130
</p>
131131
</ResourceCard>
132+
{props.wizardEventName === 'cliWizard' && (
133+
<ResourceCard className="homepage-wizard-next-steps">
134+
<SafeBlankLink
135+
href="https://docs.influxdata.com/influxdb/cloud/reference/cli/influx/"
136+
onClick={() =>
137+
handleNextStepEvent(props.wizardEventName, 'cliCommands')
138+
}
139+
>
140+
<h4>{BookIcon}CLI Commands</h4>
141+
</SafeBlankLink>
142+
<p>See the full list of CLI commands and how to use them.</p>
143+
</ResourceCard>
144+
)}
132145
</FlexBox>
133-
<SampleAppCard
134-
handleNextStepEvent={handleNextStepEvent}
135-
wizardEventName={props.wizardEventName}
136-
/>
146+
{props.wizardEventName !== 'cliWizard' ? (
147+
<SampleAppCard
148+
handleNextStepEvent={handleNextStepEvent}
149+
wizardEventName={props.wizardEventName}
150+
/>
151+
) : null}
137152
</FlexBox>
138153
</>
139154
)

0 commit comments

Comments
 (0)