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} /> {