Skip to content

Commit

Permalink
chore(ui): explicitely specify the props type of InlineTip
Browse files Browse the repository at this point in the history
  • Loading branch information
shahednasser committed Feb 24, 2025
1 parent f00e6bf commit 78fc2b7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/old-lizards-reply.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@medusajs/ui": patch
---

chore(ui): explicitely specify the props type of InlineTip
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 78fc2b7

Please sign in to comment.