Replaced all the inline help content on the route pages with components

This commit is contained in:
James Ritchie
2023-06-27 13:23:47 +01:00
parent 53ed23ac58
commit e53447d0bf
3 changed files with 28 additions and 4 deletions
@@ -1,6 +1,28 @@
import { Paragraph } from "~/components/primitives/Paragraph";
import { StepNumber } from "~/components/primitives/StepNumber";
export function HowToCreateAJob() {
return (
<>
<StepNumber stepNumber="1" title="Step 1 title" />
<StepContentContainer>
<Paragraph variant="small">Content</Paragraph>
</StepContentContainer>
</>
);
}
export function HowToRunATest() {
return (
<>
<StepNumber stepNumber="1" title="Step 1 title" />
<StepContentContainer>
<Paragraph variant="small">Content</Paragraph>
</StepContentContainer>
</>
);
}
export function HowToConnectAnIntegration() {
return (
<>
@@ -12,12 +34,12 @@ export function HowToConnectAnIntegration() {
);
}
export function HowToCreateAJob() {
export function HowToUseThisIntegration() {
return (
<>
<StepNumber stepNumber="1" title="Step 1 title" />
<StepContentContainer>
<Paragraph variant="small">How to create a Job content</Paragraph>
<Paragraph variant="small">Content</Paragraph>
</StepContentContainer>
</>
);
@@ -1,6 +1,7 @@
import { LoaderArgs } from "@remix-run/server-runtime";
import { typedjson, useTypedLoaderData } from "remix-typedjson";
import { c } from "tar";
import { HowToUseThisIntegration } from "~/components/helpContent/HelpContentText";
import { JobSkeleton } from "~/components/jobs/JobSkeleton";
import { JobsTable } from "~/components/jobs/JobsTable";
import { Header2 } from "~/components/primitives/Headers";
@@ -85,7 +86,7 @@ export default function Page() {
)}
</div>
<HelpContent title="How to use this integration">
<Paragraph>How to use this integration</Paragraph>
<HowToUseThisIntegration />
</HelpContent>
</div>
</Help>
@@ -8,6 +8,7 @@ import { typedjson, useTypedLoaderData } from "remix-typedjson";
import { z } from "zod";
import { JSONEditor } from "~/components/code/JSONEditor";
import { EnvironmentLabel } from "~/components/environments/EnvironmentLabel";
import { HowToRunATest } from "~/components/helpContent/HelpContentText";
import { Button, ButtonContent } from "~/components/primitives/Buttons";
import { Callout } from "~/components/primitives/Callout";
import { FormError } from "~/components/primitives/FormError";
@@ -264,7 +265,7 @@ export default function Page() {
</div>
</Form>
<HelpContent title="How to run a test">
<Paragraph>Help content needs writing</Paragraph>
<HowToRunATest />
</HelpContent>
</div>
</Help>