From 195df07a37a9ae61136b233baba9f47e7d87b0c0 Mon Sep 17 00:00:00 2001 From: nicollassilva Date: Mon, 27 Jul 2026 08:21:23 -0300 Subject: [PATCH] fix: CloseButton import error --- .../nitro-react/src/components/CloseButton.tsx | 16 ++++++++-------- .../object-infostand/InfostandFurniView.tsx | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/nitro-react/src/components/CloseButton.tsx b/packages/nitro-react/src/components/CloseButton.tsx index d4d12c6..9f3b6e7 100644 --- a/packages/nitro-react/src/components/CloseButton.tsx +++ b/packages/nitro-react/src/components/CloseButton.tsx @@ -2,7 +2,7 @@ import { forwardRef, type HTMLAttributes } from 'react'; import { cn, cva, type VariantProps } from '#base/utils'; -const closebuttonVariantsConfig = { +const closeButtonVariantsConfig = { variant: { // default '0': '[border-image-source:var(--closebutton-0-default-src)] [border-image-slice:0_0_0_0_fill] [border-image-width:0px_0px_0px_0px] [border-image-repeat:stretch] hover:[border-image-source:var(--closebutton-0-hovering-src)] hover:[border-image-slice:0_0_0_0_fill] hover:[border-image-width:0px_0px_0px_0px] hover:[border-image-repeat:stretch] active:[border-image-source:var(--closebutton-0-pressed-src)] active:[border-image-slice:0_0_0_0_fill] active:[border-image-width:0px_0px_0px_0px] active:[border-image-repeat:stretch]', @@ -17,30 +17,30 @@ const closebuttonVariantsConfig = { }, } as const; -const closebuttonVariants = cva( +const closeButtonVariants = cva( '', { - variants: closebuttonVariantsConfig, + variants: closeButtonVariantsConfig, defaultVariants: { variant: '0', }, } ); -type ClosebuttonVariantProps = VariantProps; +type CloseButtonVariantProps = VariantProps; -interface ClosebuttonProps extends HTMLAttributes, ClosebuttonVariantProps { +interface CloseButtonProps extends HTMLAttributes, CloseButtonVariantProps { className?: string; } -export const Closebutton = forwardRef( +export const CloseButton = forwardRef( ({ className, variant, ...props }, ref) => (
) ); -Closebutton.displayName = 'Closebutton'; +CloseButton.displayName = 'CloseButton'; diff --git a/packages/nitro-react/src/views/room-widgets/object-infostand/InfostandFurniView.tsx b/packages/nitro-react/src/views/room-widgets/object-infostand/InfostandFurniView.tsx index b3f7c52..eec38fb 100644 --- a/packages/nitro-react/src/views/room-widgets/object-infostand/InfostandFurniView.tsx +++ b/packages/nitro-react/src/views/room-widgets/object-infostand/InfostandFurniView.tsx @@ -1,7 +1,7 @@ import { FurniturePickupMode, IRoomFurnitureData } from "@nitrodevco/nitro-api"; import { Border, Button } from "#base/components"; -import { CloseButton } from "#base/components/Closebutton"; +import { CloseButton } from "#base/components/CloseButton"; import { FurnitureImage } from "#base/components/FurnitureImage"; import { useLocalizationStore } from "#base/stores";