From a65f0946f3dbc2976c2a604660eea38b62cb5099 Mon Sep 17 00:00:00 2001 From: Kevin Koech Date: Tue, 9 Jul 2024 15:34:41 +0300 Subject: [PATCH 1/3] @/Roboshield Robots Generator form --- apps/roboshield/payload-types.ts | 2 +- .../BlockRenderer/BlockRenderer.tsx | 4 +- .../src/components/CommonBots/CommonBots.tsx | 7 +- .../CommonSettings/CommonSettings.tsx | 7 +- .../src/components/Delays/Delays.tsx | 7 +- .../ExistingRobots/ExistingRobots.tsx | 7 +- .../src/components/Finish/Finish.tsx | 9 +- .../src/components/RoboForm/RoboForm.tsx | 200 ---------------- .../src/components/RoboForm/index.ts | 3 - .../RobotsGenerator/RobotsGenerator.tsx | 215 ++++++++++++++++++ .../src/components/RobotsGenerator/index.ts | 3 + .../src/components/Sitemaps/Sitemaps.tsx | 7 +- .../roboshield/src/lib/data/blockify/index.ts | 2 - .../lib/data/blockify/processBlockRoboForm.ts | 36 --- apps/roboshield/src/pages/[[...slug]].tsx | 6 +- .../{RoboForm.ts => RobotsGenerator.ts} | 33 ++- .../src/payload/collections/Pages.ts | 4 +- apps/roboshield/src/types/stepComponent.ts | 3 +- 18 files changed, 257 insertions(+), 298 deletions(-) delete mode 100644 apps/roboshield/src/components/RoboForm/RoboForm.tsx delete mode 100644 apps/roboshield/src/components/RoboForm/index.ts create mode 100644 apps/roboshield/src/components/RobotsGenerator/RobotsGenerator.tsx create mode 100644 apps/roboshield/src/components/RobotsGenerator/index.ts delete mode 100644 apps/roboshield/src/lib/data/blockify/processBlockRoboForm.ts rename apps/roboshield/src/payload/blocks/{RoboForm.ts => RobotsGenerator.ts} (96%) diff --git a/apps/roboshield/payload-types.ts b/apps/roboshield/payload-types.ts index 03c3da4e1..63dda496e 100644 --- a/apps/roboshield/payload-types.ts +++ b/apps/roboshield/payload-types.ts @@ -227,7 +227,7 @@ export interface Page { }; id?: string | null; blockName?: string | null; - blockType: "robo-form"; + blockType: "robots-generator"; } )[] | null; diff --git a/apps/roboshield/src/components/BlockRenderer/BlockRenderer.tsx b/apps/roboshield/src/components/BlockRenderer/BlockRenderer.tsx index 840e14003..6c60bd6a3 100644 --- a/apps/roboshield/src/components/BlockRenderer/BlockRenderer.tsx +++ b/apps/roboshield/src/components/BlockRenderer/BlockRenderer.tsx @@ -3,7 +3,7 @@ import Content from "@/roboshield/components/Content"; import Statistics from "@/roboshield/components/Statistics"; import { Page } from "@/root/payload-types"; import Hero from "@/roboshield/components/Hero"; -import RoboForm from "@/roboshield/components/RoboForm"; +import RobotsGenerator from "@/roboshield/components/RobotsGenerator"; import { FC } from "react"; interface BlockRendererProps extends Pick {} @@ -13,7 +13,7 @@ const components = { "page-hero": Hero, content: Content, statistics: Statistics, - "robo-form": RoboForm, + "robots-generator": RobotsGenerator, }; export default function BlockRenderer({ blocks }: BlockRendererProps) { diff --git a/apps/roboshield/src/components/CommonBots/CommonBots.tsx b/apps/roboshield/src/components/CommonBots/CommonBots.tsx index fa2720c42..29e211965 100644 --- a/apps/roboshield/src/components/CommonBots/CommonBots.tsx +++ b/apps/roboshield/src/components/CommonBots/CommonBots.tsx @@ -36,8 +36,7 @@ export default function CommonBots({ handleSkipToLast, hint, lastStep, - globalLabels, - toolTipText, + actions, }: StepComponent) { const { state } = useGlobalState(); @@ -88,7 +87,7 @@ export default function CommonBots({ @@ -223,7 +222,7 @@ export default function CommonBots({ isValid={true} lastStep={lastStep} back={false} - labels={globalLabels} + labels={actions} /> ); diff --git a/apps/roboshield/src/components/CommonSettings/CommonSettings.tsx b/apps/roboshield/src/components/CommonSettings/CommonSettings.tsx index e282c3e51..3bf396c46 100644 --- a/apps/roboshield/src/components/CommonSettings/CommonSettings.tsx +++ b/apps/roboshield/src/components/CommonSettings/CommonSettings.tsx @@ -36,11 +36,10 @@ export default function CommonSettings({ handleSkipToLast, hint, lastStep, - globalLabels, + actions, selectPlatform, allowedPaths: allowedPathsLabel, disallowedPaths: disallowedPathsLabel, - toolTipText, }: Props) { const { state } = useGlobalState(); @@ -97,7 +96,7 @@ export default function CommonSettings({ ); diff --git a/apps/roboshield/src/components/Delays/Delays.tsx b/apps/roboshield/src/components/Delays/Delays.tsx index 2bd0d7572..fe366d913 100644 --- a/apps/roboshield/src/components/Delays/Delays.tsx +++ b/apps/roboshield/src/components/Delays/Delays.tsx @@ -27,11 +27,10 @@ export default function Delays({ handleSkipToLast, hint, lastStep, - globalLabels, + actions, cacheDelay: cachedDelayLabel, crawlDelay: crawlDelayLabel, visitTime: visitTimeLabel, - toolTipText, }: Props) { const { state } = useGlobalState(); @@ -85,7 +84,7 @@ export default function Delays({ ); diff --git a/apps/roboshield/src/components/ExistingRobots/ExistingRobots.tsx b/apps/roboshield/src/components/ExistingRobots/ExistingRobots.tsx index b842fcc6c..f0dcaae0b 100644 --- a/apps/roboshield/src/components/ExistingRobots/ExistingRobots.tsx +++ b/apps/roboshield/src/components/ExistingRobots/ExistingRobots.tsx @@ -23,7 +23,7 @@ interface Props extends StepComponent { export default function ExistingRobots({ existingRobotsTxt, fetch: fetchLabel, - globalLabels, + actions, handleNext, handleBack, handleSkipToLast, @@ -32,7 +32,6 @@ export default function ExistingRobots({ placeholder, urlValidationError, defaultFetchExistingRobots, - toolTipText, }: Props) { const { state } = useGlobalState(); const [url, setUrl] = useState(state.url); @@ -102,7 +101,7 @@ export default function ExistingRobots({ @@ -170,7 +169,7 @@ export default function ExistingRobots({ isValid={allowNextStep || !shouldFetch} lastStep={lastStep} back={true} - labels={globalLabels} + labels={actions} /> {}} lastStep={lastStep} - toolTipText={toolTipText} + toolTipText={actions?.toolTipText} /> = React.forwardRef(function RoboForm(props, ref) { - const { steps, labels, toolTipText } = props; - const [activeStep, setActiveStep] = useState(0); - const { state, setState } = useGlobalState(); - const [code, setCode] = useState(state.robots || ""); - - const stepTitleComponentMap = [ - ExistingRobots, - Delays, - CommonSettings, - CommonBots, - Sitemaps, - Finish, - ]; - - const handleNext = () => { - setActiveStep((prevActiveStep) => prevActiveStep + 1); - }; - - const handleBack = () => { - setActiveStep((prevActiveStep) => prevActiveStep - 1); - }; - - const handleReset = () => { - setState(defaultState); - setActiveStep(0); - }; - - const handleNextStep = (data: any) => { - const newState = { ...state, ...data }; - setState(newState); - handleNext(); - }; - - const handleSkipToLast = (data: any) => { - const newState = { ...state, ...data }; - setState(newState); - setActiveStep(props.steps.length - 1); - }; - - const handleStep = (step: number) => () => { - setActiveStep(step); - }; - - useEffect(() => { - const generateRobotsFile = async () => { - const robots = await generateRobots(state); - setCode(robots); - }; - - generateRobotsFile(); - }, [state]); - - const ActiveComponent = stepTitleComponentMap[activeStep] ?? null; - const { hint, ...activeComponentProps } = steps[activeStep] ?? {}; - return ( - <> -
- - - - - - - - {steps?.map((step, index) => ( - - - {step?.title} - - - ))} - - {ActiveComponent && ( - - } - handleNext={handleNextStep} - handleBack={handleBack} - handleSkipToLast={handleSkipToLast} - lastStep={activeStep === steps.length - 1} - handleReset={handleReset} - globalLabels={labels} - toolTipText={toolTipText} - {...activeComponentProps} - /> - - )} - - - - -
- - ); -}); - -export default RoboForm; diff --git a/apps/roboshield/src/components/RoboForm/index.ts b/apps/roboshield/src/components/RoboForm/index.ts deleted file mode 100644 index 0f913a76d..000000000 --- a/apps/roboshield/src/components/RoboForm/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -import RoboForm from "./RoboForm"; - -export default RoboForm; diff --git a/apps/roboshield/src/components/RobotsGenerator/RobotsGenerator.tsx b/apps/roboshield/src/components/RobotsGenerator/RobotsGenerator.tsx new file mode 100644 index 000000000..6d94cf31e --- /dev/null +++ b/apps/roboshield/src/components/RobotsGenerator/RobotsGenerator.tsx @@ -0,0 +1,215 @@ +import { Section } from "@commons-ui/core"; +import { Box, Paper, Stack, Step, StepButton, Stepper } from "@mui/material"; +import { FC, useEffect } from "react"; +import React from "react"; +import { useState } from "react"; + +import Delays from "@/roboshield/components/Delays"; +import Sitemaps from "@/roboshield/components/Sitemaps"; + +import CommonBots from "@/roboshield/components/CommonBots"; +import CommonSettings from "@/roboshield/components/CommonSettings"; +import ExistingRobots from "@/roboshield/components/ExistingRobots"; +import Finish from "@/roboshield/components/Finish"; +import { + useGlobalState, + defaultState, +} from "@/roboshield/context/GlobalContext"; +import { generateRobots } from "@/roboshield/lib/robots"; +import RichText, { Children } from "@/roboshield/components/RichText"; + +type Props = { [key: string]: string } & { + steps: { + title: string; + hint?: Children; + blockType: + | "existing-robots" + | "delays" + | "path" + | "block-bots" + | "site-maps" + | "finish"; + }[]; + actions: { + toolTipText: string; + back: string; + continue: string; + copyToClipboard: string; + download: string; + fetch: string; + reset: string; + }; +}; + +const slugComponentsMap = { + "existing-robots": ExistingRobots, + delays: Delays, + path: CommonSettings, + "block-bots": CommonBots, + "site-maps": Sitemaps, + finish: Finish, +}; +const RobotsGenerator: FC = React.forwardRef( + function RobotsGenerator(props, ref) { + const { steps, actions } = props; + const [activeStep, setActiveStep] = useState(0); + const { state, setState } = useGlobalState(); + const [code, setCode] = useState(state.robots || ""); + + const handleNext = () => { + setActiveStep((prevActiveStep) => prevActiveStep + 1); + }; + + const handleBack = () => { + setActiveStep((prevActiveStep) => prevActiveStep - 1); + }; + + const handleReset = () => { + setState(defaultState); + setActiveStep(0); + }; + + const handleNextStep = (data: any) => { + const newState = { ...state, ...data }; + setState(newState); + handleNext(); + }; + + const handleSkipToLast = (data: any) => { + const newState = { ...state, ...data }; + setState(newState); + setActiveStep(props.steps.length - 1); + }; + + const handleStep = (step: number) => () => { + setActiveStep(step); + }; + + useEffect(() => { + const generateRobotsFile = async () => { + const robots = await generateRobots(state); + setCode(robots); + }; + + generateRobotsFile(); + }, [state]); + + const activeStepSlug: + | "existing-robots" + | "delays" + | "path" + | "block-bots" + | "site-maps" + | "finish" = steps[activeStep]?.blockType; + const ActiveComponent = slugComponentsMap[activeStepSlug] ?? null; + const { hint, ...activeComponentProps } = steps[activeStep] ?? {}; + return ( + <> +
+ + + + + + + + {steps?.map((step, index) => ( + + + {step?.title} + + + ))} + + {ActiveComponent && ( + + } + handleNext={handleNextStep} + handleBack={handleBack} + handleSkipToLast={handleSkipToLast} + lastStep={activeStep === steps.length - 1} + handleReset={handleReset} + actions={actions} + {...activeComponentProps} + /> + + )} + + + + +
+ + ); + }, +); + +export default RobotsGenerator; diff --git a/apps/roboshield/src/components/RobotsGenerator/index.ts b/apps/roboshield/src/components/RobotsGenerator/index.ts new file mode 100644 index 000000000..b583e5aea --- /dev/null +++ b/apps/roboshield/src/components/RobotsGenerator/index.ts @@ -0,0 +1,3 @@ +import RobotsGenerator from "./RobotsGenerator"; + +export default RobotsGenerator; diff --git a/apps/roboshield/src/components/Sitemaps/Sitemaps.tsx b/apps/roboshield/src/components/Sitemaps/Sitemaps.tsx index cf0022e2a..8c5714706 100644 --- a/apps/roboshield/src/components/Sitemaps/Sitemaps.tsx +++ b/apps/roboshield/src/components/Sitemaps/Sitemaps.tsx @@ -17,9 +17,8 @@ export default function Sitemaps({ handleSkipToLast, hint, lastStep, - globalLabels, + actions, placeholder, - toolTipText, }: Props) { const { state } = useGlobalState(); const [sitemaps, setSitemaps] = useState(state.sitemaps); @@ -46,7 +45,7 @@ export default function Sitemaps({ ); diff --git a/apps/roboshield/src/lib/data/blockify/index.ts b/apps/roboshield/src/lib/data/blockify/index.ts index 96454043e..a430830c0 100644 --- a/apps/roboshield/src/lib/data/blockify/index.ts +++ b/apps/roboshield/src/lib/data/blockify/index.ts @@ -1,7 +1,6 @@ import { Page } from "@/root/payload-types"; import { ExtractBlockType } from "@/roboshield/utils/blocks"; import { Api } from "@/roboshield/lib/payload"; -import processBlockRoboForm from "./processBlockRoboForm"; type PropsifyBlockFunction = ( block: T, @@ -30,7 +29,6 @@ const pageHeader: PropsifyBlockFunction = async (block, api) => { const propsifyBlockBySlug: PropsifyBlockBySlug = { "page-header": pageHeader, - "robo-form": processBlockRoboForm, }; export const blockify = async (blocks: Page["blocks"], api: Api) => { diff --git a/apps/roboshield/src/lib/data/blockify/processBlockRoboForm.ts b/apps/roboshield/src/lib/data/blockify/processBlockRoboForm.ts deleted file mode 100644 index 9acc1e5d6..000000000 --- a/apps/roboshield/src/lib/data/blockify/processBlockRoboForm.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { Page } from "@/root/payload-types"; -import { Api } from "@/roboshield/lib/payload"; -import { ExtractBlockType } from "@/roboshield/utils/blocks"; - -type PropsifyBlockFunction = ( - block: T, - api: Api, -) => Promise; - -function sortSteps(steps: any[]) { - const stepOrder: string[] = [ - "existing-robots", - "delays", - "paths", - "block-bots", - "site-maps", - "finish", - ]; - return stepOrder.map((slug) => - steps.find(({ blockType }) => blockType === slug), - ); -} - -const processBlockRoboForm: PropsifyBlockFunction< - ExtractBlockType[number], "robo-form"> -> = async (block, api) => { - const steps = sortSteps(block.steps ?? []); - - return { - ...block, - slug: "robo-form", - steps, - }; -}; - -export default processBlockRoboForm; diff --git a/apps/roboshield/src/pages/[[...slug]].tsx b/apps/roboshield/src/pages/[[...slug]].tsx index 0e3b365ed..a70534518 100644 --- a/apps/roboshield/src/pages/[[...slug]].tsx +++ b/apps/roboshield/src/pages/[[...slug]].tsx @@ -4,11 +4,7 @@ import { PageProps } from "@/roboshield/lib/data"; import { GetServerSidePropsContext } from "next"; export default function Page({ blocks }: PageProps) { - return ( - <> - - - ); + return ; } export async function getServerSideProps(context: GetServerSidePropsContext) { diff --git a/apps/roboshield/src/payload/blocks/RoboForm.ts b/apps/roboshield/src/payload/blocks/RobotsGenerator.ts similarity index 96% rename from apps/roboshield/src/payload/blocks/RoboForm.ts rename to apps/roboshield/src/payload/blocks/RobotsGenerator.ts index 75d38dbf0..6b0f6830e 100644 --- a/apps/roboshield/src/payload/blocks/RoboForm.ts +++ b/apps/roboshield/src/payload/blocks/RobotsGenerator.ts @@ -352,10 +352,16 @@ const Finish: Block = { }; const Labels: Field = { - name: "labels", - label: "Labels", + name: "actions", + label: "Actions", type: "group", fields: [ + { + name: "toolTipText", + type: "text", + required: true, + defaultValue: "View current robots.txt file", + }, { name: "continue", type: "text", @@ -388,16 +394,10 @@ const Labels: Field = { }, ], }; -const RoboForm: Block = { - slug: "robo-form", - labels: { singular: "Robo Form", plural: "Robo Form" }, +const RobotsGenerator: Block = { + slug: "robots-generator", + labels: { singular: "Robots Generator", plural: "Robots Generator" }, fields: [ - { - name: "toolTipText", - type: "text", - required: true, - defaultValue: "View current robots.txt file", - }, { type: "blocks", name: "steps", @@ -406,14 +406,7 @@ const RoboForm: Block = { initCollapsed: true, }, validate: (value, args) => { - const requiredSteps: string[] = [ - "existing-robots", - "delays", - "paths", - "block-bots", - "site-maps", - "finish", - ]; + const requiredSteps: string[] = ["finish"]; const missingSteps = requiredSteps.filter( (slug) => !value?.find( @@ -430,4 +423,4 @@ const RoboForm: Block = { ], }; -export default RoboForm; +export default RobotsGenerator; diff --git a/apps/roboshield/src/payload/collections/Pages.ts b/apps/roboshield/src/payload/collections/Pages.ts index 77b935f46..5353fcac7 100644 --- a/apps/roboshield/src/payload/collections/Pages.ts +++ b/apps/roboshield/src/payload/collections/Pages.ts @@ -1,7 +1,7 @@ import { CollectionConfig } from "payload/types"; import fullTitle from "../fields/fullTitle"; import slug from "../fields/slug"; -import RoboForm from "../blocks/RoboForm"; +import RobotsGenerator from "../blocks/RobotsGenerator"; import { PageHeader } from "../blocks/PageHeader"; import { PageHero } from "../blocks/PageHero"; import { Content } from "../blocks/Content"; @@ -30,7 +30,7 @@ const Pages: CollectionConfig = { { name: "blocks", type: "blocks", - blocks: [PageHeader, PageHero, Content, Statistics, RoboForm], + blocks: [PageHeader, PageHero, Content, Statistics, RobotsGenerator], localized: true, admin: { initCollapsed: true, diff --git a/apps/roboshield/src/types/stepComponent.ts b/apps/roboshield/src/types/stepComponent.ts index bc76f71ab..b0f506f3d 100644 --- a/apps/roboshield/src/types/stepComponent.ts +++ b/apps/roboshield/src/types/stepComponent.ts @@ -7,6 +7,5 @@ export interface StepComponent { hint: ReactNode; lastStep: boolean; labels?: { [key: string]: any }; - globalLabels?: { [key: string]: any }; - toolTipText: string; + actions?: { [key: string]: any }; } From 2d2d0dffd699419484c99ae5034e395deb562985 Mon Sep 17 00:00:00 2001 From: Kevin Koech Date: Wed, 10 Jul 2024 13:17:27 +0300 Subject: [PATCH 2/3] Robots TXT generator requested changes --- apps/roboshield/payload-types.ts | 4 +- .../BlockRenderer/BlockRenderer.tsx | 4 +- .../src/components/CommonBots/CommonBots.tsx | 2 +- .../CommonSettings/CommonSettings.tsx | 2 +- .../src/components/Delays/Delays.tsx | 2 +- .../src/components/ExistingRobots/index.ts | 3 - .../ExistingRobotsTxt.tsx} | 2 +- .../src/components/ExistingRobotsTxt/index.ts | 3 + .../src/components/Finish/Finish.tsx | 2 +- apps/roboshield/src/components/Hero/Hero.tsx | 2 +- .../RobotsGenerator/RobotsGenerator.tsx | 215 ------------------ .../src/components/RobotsGenerator/index.ts | 3 - .../RobotsTxtGenerator/RobotsTxtGenerator.tsx | 213 +++++++++++++++++ .../components/RobotsTxtGenerator/index.ts | 3 + .../src/components/Sitemaps/Sitemaps.tsx | 2 +- .../SkipToLastStep/SkipToLastStep.tsx | 6 +- ...botsGenerator.ts => RobotsTxtGenerator.ts} | 44 ++-- .../src/payload/collections/Pages.ts | 4 +- 18 files changed, 260 insertions(+), 256 deletions(-) delete mode 100644 apps/roboshield/src/components/ExistingRobots/index.ts rename apps/roboshield/src/components/{ExistingRobots/ExistingRobots.tsx => ExistingRobotsTxt/ExistingRobotsTxt.tsx} (99%) create mode 100644 apps/roboshield/src/components/ExistingRobotsTxt/index.ts delete mode 100644 apps/roboshield/src/components/RobotsGenerator/RobotsGenerator.tsx delete mode 100644 apps/roboshield/src/components/RobotsGenerator/index.ts create mode 100644 apps/roboshield/src/components/RobotsTxtGenerator/RobotsTxtGenerator.tsx create mode 100644 apps/roboshield/src/components/RobotsTxtGenerator/index.ts rename apps/roboshield/src/payload/blocks/{RobotsGenerator.ts => RobotsTxtGenerator.ts} (91%) diff --git a/apps/roboshield/payload-types.ts b/apps/roboshield/payload-types.ts index 63dda496e..25d346789 100644 --- a/apps/roboshield/payload-types.ts +++ b/apps/roboshield/payload-types.ts @@ -108,7 +108,7 @@ export interface Page { blockType: "statistics"; } | { - toolTipText: string; + showRobotsTxt: string; steps?: | ( | { @@ -227,7 +227,7 @@ export interface Page { }; id?: string | null; blockName?: string | null; - blockType: "robots-generator"; + blockType: "robots-txt-generator"; } )[] | null; diff --git a/apps/roboshield/src/components/BlockRenderer/BlockRenderer.tsx b/apps/roboshield/src/components/BlockRenderer/BlockRenderer.tsx index 6c60bd6a3..0f52ee963 100644 --- a/apps/roboshield/src/components/BlockRenderer/BlockRenderer.tsx +++ b/apps/roboshield/src/components/BlockRenderer/BlockRenderer.tsx @@ -3,7 +3,7 @@ import Content from "@/roboshield/components/Content"; import Statistics from "@/roboshield/components/Statistics"; import { Page } from "@/root/payload-types"; import Hero from "@/roboshield/components/Hero"; -import RobotsGenerator from "@/roboshield/components/RobotsGenerator"; +import RobotsTxtGenerator from "@/roboshield/components/RobotsTxtGenerator"; import { FC } from "react"; interface BlockRendererProps extends Pick {} @@ -13,7 +13,7 @@ const components = { "page-hero": Hero, content: Content, statistics: Statistics, - "robots-generator": RobotsGenerator, + "robots-txt-generator": RobotsTxtGenerator, }; export default function BlockRenderer({ blocks }: BlockRendererProps) { diff --git a/apps/roboshield/src/components/CommonBots/CommonBots.tsx b/apps/roboshield/src/components/CommonBots/CommonBots.tsx index 29e211965..cc01c11fb 100644 --- a/apps/roboshield/src/components/CommonBots/CommonBots.tsx +++ b/apps/roboshield/src/components/CommonBots/CommonBots.tsx @@ -87,7 +87,7 @@ export default function CommonBots({ diff --git a/apps/roboshield/src/components/CommonSettings/CommonSettings.tsx b/apps/roboshield/src/components/CommonSettings/CommonSettings.tsx index 3bf396c46..0592d4a70 100644 --- a/apps/roboshield/src/components/CommonSettings/CommonSettings.tsx +++ b/apps/roboshield/src/components/CommonSettings/CommonSettings.tsx @@ -96,7 +96,7 @@ export default function CommonSettings({ diff --git a/apps/roboshield/src/components/ExistingRobotsTxt/index.ts b/apps/roboshield/src/components/ExistingRobotsTxt/index.ts new file mode 100644 index 000000000..0855e9ff2 --- /dev/null +++ b/apps/roboshield/src/components/ExistingRobotsTxt/index.ts @@ -0,0 +1,3 @@ +import ExistingRobotsTxt from "./ExistingRobotsTxt"; + +export default ExistingRobotsTxt; diff --git a/apps/roboshield/src/components/Finish/Finish.tsx b/apps/roboshield/src/components/Finish/Finish.tsx index d309a9474..a9d04d428 100644 --- a/apps/roboshield/src/components/Finish/Finish.tsx +++ b/apps/roboshield/src/components/Finish/Finish.tsx @@ -79,7 +79,7 @@ export default function Finish({ {}} lastStep={lastStep} - toolTipText={actions?.toolTipText} + showRobotsTxt={actions?.showRobotsTxt} /> {