fix(web): remove redundant prop-types and unblock lint pipeline
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 10s
Build & Deploy / 🧪 QA (push) Failing after 2m24s
Build & Deploy / 🏗️ Build (push) Failing after 3m40s
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🩺 Health Check (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 3s

This commit is contained in:
2026-02-24 11:38:43 +01:00
parent 95a8b702fe
commit 6864903cff
205 changed files with 6570 additions and 1324 deletions

View File

@@ -0,0 +1,102 @@
import { MintelBlock } from "./types";
import type { Block } from "payload";
export const ComparisonRowBlock: MintelBlock = {
slug: "comparisonRow",
labels: {
singular: "Comparison Row",
plural: "Comparison Rows",
},
admin: {
group: "MDX Components",
},
ai: {
name: "ComparisonRow",
description:
'Side-by-side comparison: negative "Standard" approach vs positive "Mintel" approach. Props include showShare boolean.',
usageExample: `<ComparisonRow
description="Architektur-Vergleich"
negativeLabel="Legacy CMS"
negativeText="Langsame Datenbankabfragen, verwundbare Plugins."
positiveLabel="Mintel Stack"
positiveText="Statische Generierung, perfekte Sicherheit."
showShare={true`,
},
fields: [
{
name: "description",
type: "text",
admin: {
description: "Optional overarching description for the comparison.",
components: {
afterInput: [
"@/src/payload/components/FieldGenerators/AiFieldButton#AiFieldButton",
],
},
},
},
{
name: "negativeLabel",
type: "text",
required: true,
defaultValue: "Legacy",
admin: {
components: {
afterInput: [
"@/src/payload/components/FieldGenerators/AiFieldButton#AiFieldButton",
],
},
description: "Geben Sie den Text für negativeLabel ein.",
},
},
{
name: "negativeText",
type: "text",
required: true,
admin: {
components: {
afterInput: [
"@/src/payload/components/FieldGenerators/AiFieldButton#AiFieldButton",
],
},
description: "Geben Sie den Text für negativeText ein.",
},
},
{
name: "positiveLabel",
type: "text",
required: true,
defaultValue: "Mintel Stack",
admin: {
components: {
afterInput: [
"@/src/payload/components/FieldGenerators/AiFieldButton#AiFieldButton",
],
},
description: "Geben Sie den Text für positiveLabel ein.",
},
},
{
name: "positiveText",
type: "text",
required: true,
admin: {
components: {
afterInput: [
"@/src/payload/components/FieldGenerators/AiFieldButton#AiFieldButton",
],
},
description: "Geben Sie den Text für positiveText ein.",
},
},
{
name: "reverse",
type: "checkbox",
defaultValue: false,
admin: {
description: "Swap the visual order of the positive/negative cards?",
},
},
],
};