From dcd191303b8ffb9b84e3bd7c6caf5aebc6ae65a3 Mon Sep 17 00:00:00 2001 From: seaerchin Date: Tue, 23 Jul 2024 11:28:35 +0800 Subject: [PATCH] chore: callout removed variant --- packages/components/src/interfaces/complex/Callout.ts | 8 -------- .../templates/next/components/complex/Callout/Callout.tsx | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/packages/components/src/interfaces/complex/Callout.ts b/packages/components/src/interfaces/complex/Callout.ts index 6f3602754e..c5ab974bf6 100644 --- a/packages/components/src/interfaces/complex/Callout.ts +++ b/packages/components/src/interfaces/complex/Callout.ts @@ -14,14 +14,6 @@ export const CalloutSchema = Type.Object( { type: Type.Literal("callout", { default: "callout" }), content: InnerProseSchema, - variant: Type.Union( - CALLOUT_VARIANTS.map((variant) => Type.Literal(variant)), - { - title: "Callout variant", - description: "The variant of the callout to use", - type: "string", - }, - ), }, { title: "Callout component", diff --git a/packages/components/src/templates/next/components/complex/Callout/Callout.tsx b/packages/components/src/templates/next/components/complex/Callout/Callout.tsx index bb6819ae18..5450dedd79 100644 --- a/packages/components/src/templates/next/components/complex/Callout/Callout.tsx +++ b/packages/components/src/templates/next/components/complex/Callout/Callout.tsx @@ -1,7 +1,7 @@ import type { CalloutProps } from "~/interfaces" import { Prose } from "../../native" -const Callout = ({ content, variant }: CalloutProps) => { +const Callout = ({ content }: CalloutProps) => { return (