From 38a57b1ddcaabeba78dba626b7ec7985df107d07 Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Mon, 24 Feb 2025 12:11:57 +0200 Subject: [PATCH] chore(ui): explicitely specify the props type of InlineTip (#11575) --- .changeset/old-lizards-reply.md | 5 +++++ .../ui/src/components/inline-tip/inline-tip.tsx | 9 ++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 .changeset/old-lizards-reply.md diff --git a/.changeset/old-lizards-reply.md b/.changeset/old-lizards-reply.md new file mode 100644 index 0000000000..5138638dd3 --- /dev/null +++ b/.changeset/old-lizards-reply.md @@ -0,0 +1,5 @@ +--- +"@medusajs/ui": patch +--- + +chore(ui): explicitely specify the props type of InlineTip diff --git a/packages/design-system/ui/src/components/inline-tip/inline-tip.tsx b/packages/design-system/ui/src/components/inline-tip/inline-tip.tsx index 9020994bb2..46df9e0e2c 100644 --- a/packages/design-system/ui/src/components/inline-tip/inline-tip.tsx +++ b/packages/design-system/ui/src/components/inline-tip/inline-tip.tsx @@ -17,7 +17,14 @@ interface InlineTipProps extends React.ComponentPropsWithoutRef<"div"> { * This component is based on the `div` element and supports all of its props. */ export const InlineTip = React.forwardRef( - ({ variant = "info", label, className, children, ...props }, ref) => { + ( + { + variant = "info", + label, + className, + children, + ...props + }: InlineTipProps, ref) => { return (