Skip to content

Commit

Permalink
chore: callout
Browse files Browse the repository at this point in the history
removed variant
  • Loading branch information
seaerchin committed Jul 23, 2024
1 parent 6166685 commit dcd1913
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions packages/components/src/interfaces/complex/Callout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { CalloutProps } from "~/interfaces"
import { Prose } from "../../native"

const Callout = ({ content, variant }: CalloutProps) => {
const Callout = ({ content }: CalloutProps) => {
return (
<div
className={`rounded border border-utility-info bg-utility-info-subtle p-6 [&:not(:first-child)]:mt-8`}
Expand Down

0 comments on commit dcd1913

Please sign in to comment.