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

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

View File

@@ -0,0 +1,5 @@
---
"@medusajs/ui": patch
---
chore(ui): explicitely specify the props type of InlineTip

View File

@@ -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}