chore(ui): explicitely specify the props type of InlineTip (#11575)

This commit is contained in:
Shahed Nasser authored and GitHub committed 2025-02-24 10:11:57 +00:00
1 parent f00e6bf660
commit 38a57b1ddc
2 files changed
+13 -1

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
---
"@medusajs/ui": patch
---
chore(ui): explicitely specify the props type of InlineTip
@@ -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<HTMLDivElement, InlineTipProps>(
({ variant = "info", label, className, children, ...props }, ref) => {
(
{
variant = "info",
label,
className,
children,
...props
}: InlineTipProps, ref) => {
return (
<div
ref={ref}