Skip to content

Commit

Permalink
Robots TXT generator requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
koechkevin committed Jul 10, 2024
1 parent a65f094 commit 2d2d0df
Show file tree
Hide file tree
Showing 18 changed files with 260 additions and 256 deletions.
4 changes: 2 additions & 2 deletions apps/roboshield/payload-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export interface Page {
blockType: "statistics";
}
| {
toolTipText: string;
showRobotsTxt: string;
steps?:
| (
| {
Expand Down Expand Up @@ -227,7 +227,7 @@ export interface Page {
};
id?: string | null;
blockName?: string | null;
blockType: "robots-generator";
blockType: "robots-txt-generator";
}
)[]
| null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Page, "blocks"> {}
Expand All @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion apps/roboshield/src/components/CommonBots/CommonBots.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export default function CommonBots({
<SkipToLastStep
handleSkipToLast={skipToLast}
lastStep={lastStep}
toolTipText={actions?.toolTipText}
showRobotsTxt={actions?.showRobotsTxt}
/>
<StepHint hint={hint} />
<Box sx={{ py: 2 }}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export default function CommonSettings({
<SkipToLastStep
handleSkipToLast={skipToLast}
lastStep={lastStep}
toolTipText={actions?.toolTipText}
showRobotsTxt={actions?.showRobotsTxt}
/>
<StepHint hint={hint} />
<Box
Expand Down
2 changes: 1 addition & 1 deletion apps/roboshield/src/components/Delays/Delays.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export default function Delays({
<SkipToLastStep
handleSkipToLast={skipToLast}
lastStep={lastStep}
toolTipText={actions?.toolTipText}
showRobotsTxt={actions?.showRobotsTxt}
/>
<StepHint hint={hint} />
<Box
Expand Down
3 changes: 0 additions & 3 deletions apps/roboshield/src/components/ExistingRobots/index.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export default function ExistingRobots({
<SkipToLastStep
handleSkipToLast={skipToLast}
lastStep={lastStep}
toolTipText={actions?.toolTipText}
showRobotsTxt={actions?.showRobotsTxt}
/>
<StepHint hint={hint} />
<Box sx={{ py: 2 }}>
Expand Down
3 changes: 3 additions & 0 deletions apps/roboshield/src/components/ExistingRobotsTxt/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import ExistingRobotsTxt from "./ExistingRobotsTxt";

export default ExistingRobotsTxt;
2 changes: 1 addition & 1 deletion apps/roboshield/src/components/Finish/Finish.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default function Finish({
<SkipToLastStep
handleSkipToLast={() => {}}
lastStep={lastStep}
toolTipText={actions?.toolTipText}
showRobotsTxt={actions?.showRobotsTxt}
/>
<StepHint hint={hint} />
<Box
Expand Down
2 changes: 1 addition & 1 deletion apps/roboshield/src/components/Hero/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ const Hero = (props: PageHero) => {

<Button
onClick={() => {
const element = document.getElementById("robots-generator");
const element = document.getElementById("robots-txt-generator");
element?.scrollIntoView({
behavior: "smooth",
});
Expand Down
215 changes: 0 additions & 215 deletions apps/roboshield/src/components/RobotsGenerator/RobotsGenerator.tsx

This file was deleted.

3 changes: 0 additions & 3 deletions apps/roboshield/src/components/RobotsGenerator/index.ts

This file was deleted.

Loading

0 comments on commit 2d2d0df

Please sign in to comment.