Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
chdeskur committed Oct 4, 2024
1 parent beec2ba commit 1caa826
Showing 1 changed file with 25 additions and 5 deletions.
30 changes: 25 additions & 5 deletions packages/ui/app/src/mdx/components/callout/Callout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,23 +109,35 @@ export function InfoCallout({ children, title, icon }: PropsWithChildren<Omit<Ca
);
}

export function WarningCallout({ children, title, icon }: PropsWithChildren<Omit<Callout.Props, "intent">>): ReactElement {
export function WarningCallout({
children,
title,
icon,
}: PropsWithChildren<Omit<Callout.Props, "intent">>): ReactElement {
return (
<Callout intent="warning" title={title} icon={icon}>
{children}
</Callout>
);
}

export function SuccessCallout({ children, title, icon }: PropsWithChildren<Omit<Callout.Props, "intent">>): ReactElement {
export function SuccessCallout({
children,
title,
icon,
}: PropsWithChildren<Omit<Callout.Props, "intent">>): ReactElement {
return (
<Callout intent="success" title={title} icon={icon}>
{children}
</Callout>
);
}

export function ErrorCallout({ children, title, icon }: PropsWithChildren<Omit<Callout.Props, "intent">>): ReactElement {
export function ErrorCallout({
children,
title,
icon,
}: PropsWithChildren<Omit<Callout.Props, "intent">>): ReactElement {
return (
<Callout intent="error" title={title} icon={icon}>
{children}
Expand All @@ -141,7 +153,11 @@ export function NoteCallout({ children, title, icon }: PropsWithChildren<Omit<Ca
);
}

export function LaunchNoteCallout({ children, title, icon }: PropsWithChildren<Omit<Callout.Props, "intent">>): ReactElement {
export function LaunchNoteCallout({
children,
title,
icon,
}: PropsWithChildren<Omit<Callout.Props, "intent">>): ReactElement {
return (
<Callout intent="launch" title={title} icon={icon}>
{children}
Expand All @@ -157,7 +173,11 @@ export function TipCallout({ children, title, icon }: PropsWithChildren<Omit<Cal
);
}

export function CheckCallout({ children, title, icon }: PropsWithChildren<Omit<Callout.Props, "intent">>): ReactElement {
export function CheckCallout({
children,
title,
icon,
}: PropsWithChildren<Omit<Callout.Props, "intent">>): ReactElement {
return (
<Callout intent="check" title={title} icon={icon}>
{children}
Expand Down

0 comments on commit 1caa826

Please sign in to comment.