Skip to content

Commit 38a57b1

Browse files
authored
chore(ui): explicitely specify the props type of InlineTip (medusajs#11575)
1 parent f00e6bf commit 38a57b1

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.changeset/old-lizards-reply.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@medusajs/ui": patch
3+
---
4+
5+
chore(ui): explicitely specify the props type of InlineTip

packages/design-system/ui/src/components/inline-tip/inline-tip.tsx

+8-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,14 @@ interface InlineTipProps extends React.ComponentPropsWithoutRef<"div"> {
1717
* This component is based on the `div` element and supports all of its props.
1818
*/
1919
export const InlineTip = React.forwardRef<HTMLDivElement, InlineTipProps>(
20-
({ variant = "info", label, className, children, ...props }, ref) => {
20+
(
21+
{
22+
variant = "info",
23+
label,
24+
className,
25+
children,
26+
...props
27+
}: InlineTipProps, ref) => {
2128
return (
2229
<div
2330
ref={ref}

0 commit comments

Comments
 (0)