Skip to content

Commit 906d737

Browse files
Address greptile comments
1 parent f79f600 commit 906d737

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

apps/sim/components/emcn/components/callout/callout.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ export interface CalloutProps
4545
* <Callout variant='warning'>This action is irreversible</Callout>
4646
* ```
4747
*/
48-
function Callout({ className, variant, icon, children, ...props }: CalloutProps) {
48+
function Callout({ className, variant, icon, children, role = 'note', ...props }: CalloutProps) {
4949
const variantKey = (variant ?? 'default') as keyof typeof DEFAULT_ICONS
5050
const Icon = icon === null ? null : (icon ?? DEFAULT_ICONS[variantKey])
5151

5252
return (
53-
<div className={cn(calloutVariants({ variant }), className)} {...props}>
53+
<div role={role} className={cn(calloutVariants({ variant }), className)} {...props}>
5454
{Icon && <Icon className='h-[14px] w-[14px] shrink-0' />}
55-
<p>{children}</p>
55+
<span>{children}</span>
5656
</div>
5757
)
5858
}

0 commit comments

Comments
 (0)