From ecc5633567866575142e4521ffb98fdda5bed924 Mon Sep 17 00:00:00 2001 From: Bill Date: Fri, 4 Mar 2022 00:31:13 -0500 Subject: [PATCH] Move RoomContext --- src/api/nitro/room/widgets/handlers/index.ts | 2 ++ src/common/layout/LayoutBadgeImageView.tsx | 16 ++++++++++-- src/views/room/RoomColorView.tsx | 2 +- src/views/room/RoomContext.tsx | 25 +++++++++++++++++++ src/views/room/RoomView.tsx | 21 ++++++++-------- src/views/room/RoomView.types.ts | 6 ----- src/views/room/context/RoomContext.tsx | 16 ------------ src/views/room/context/RoomContext.types.ts | 16 ------------ src/views/room/widgets/RoomWidgetsView.tsx | 2 +- .../AvatarInfoUseProductConfirmView.tsx | 2 +- .../avatar-info/AvatarInfoUseProductView.tsx | 2 +- .../AvatarInfoWidgetAvatarView.tsx | 2 +- .../AvatarInfoWidgetDecorateView.tsx | 2 +- .../AvatarInfoWidgetOwnAvatarView.tsx | 2 +- .../AvatarInfoWidgetOwnPetView.tsx | 2 +- .../avatar-info/AvatarInfoWidgetPetView.tsx | 2 +- .../AvatarInfoWidgetRentableBotView.tsx | 2 +- .../avatar-info/AvatarInfoWidgetView.tsx | 2 +- .../room/widgets/chat-input/ChatInputView.tsx | 2 +- .../room/widgets/chat/ChatWidgetView.tsx | 2 +- .../widgets/choosers/ChooserWidgetView.tsx | 2 +- .../choosers/FurniChooserWidgetView.tsx | 2 +- .../choosers/UserChooserWidgetView.tsx | 2 +- .../widgets/doorbell/DoorbellWidgetView.tsx | 2 +- .../FriendRequestDialogView.tsx | 2 +- .../FriendRequestWidgetView.tsx | 2 +- .../FurnitureBackgroundColorView.tsx | 2 +- .../FurnitureBadgeDisplayView.tsx | 2 +- .../context-menu/EffectBoxConfirmView.tsx | 2 +- .../context-menu/FurnitureContextMenuView.tsx | 2 +- .../MonsterPlantSeedConfirmView.tsx | 2 +- .../PurchasableClothingConfirmView.tsx | 2 +- .../FurnitureCustomStackHeightView.tsx | 2 +- .../furniture/dimmer/FurnitureDimmerView.tsx | 2 +- .../FurnitureExchangeCreditView.tsx | 2 +- .../FurnitureExternalImageView.tsx | 2 +- .../friend-furni/FurnitureFriendFurniView.tsx | 2 +- .../gift-opening/FurnitureGiftOpeningView.tsx | 2 +- .../high-score/FurnitureHighScoreView.tsx | 2 +- .../FurnitureManipulationMenuView.tsx | 2 +- .../mannequin/FurnitureMannequinView.tsx | 2 +- .../stickie/FurnitureStickieView.tsx | 2 +- .../furniture/trophy/FurnitureTrophyView.tsx | 2 +- .../FurnitureYoutubeDisplayView.tsx | 2 +- .../infostand/InfoStandWidgetFurniView.tsx | 2 +- .../infostand/InfoStandWidgetUserView.tsx | 2 +- .../widgets/infostand/InfoStandWidgetView.tsx | 2 +- .../RoomThumbnailWidgetView.tsx | 2 +- .../room-tools/RoomToolsWidgetView.tsx | 2 +- .../user-location/UserLocationView.tsx | 2 +- .../widgets/word-quiz/WordQuizWidgetView.tsx | 2 +- 51 files changed, 95 insertions(+), 95 deletions(-) create mode 100644 src/views/room/RoomContext.tsx delete mode 100644 src/views/room/RoomView.types.ts delete mode 100644 src/views/room/context/RoomContext.tsx delete mode 100644 src/views/room/context/RoomContext.types.ts diff --git a/src/api/nitro/room/widgets/handlers/index.ts b/src/api/nitro/room/widgets/handlers/index.ts index 463caaaa..1af4c0e0 100644 --- a/src/api/nitro/room/widgets/handlers/index.ts +++ b/src/api/nitro/room/widgets/handlers/index.ts @@ -12,6 +12,7 @@ export * from './FurnitureTrophyWidgetHandler'; export * from './FurnitureYoutubeDisplayWidgetHandler'; export * from './IRoomWidgetHandler'; export * from './IRoomWidgetHandlerManager'; +export * from './PollWidgetHandler'; export * from './RoomWidgetAvatarInfoHandler'; export * from './RoomWidgetChatHandler'; export * from './RoomWidgetChatInputHandler'; @@ -20,3 +21,4 @@ export * from './RoomWidgetHandlerManager'; export * from './RoomWidgetInfostandHandler'; export * from './RoomWidgetRoomToolsHandler'; export * from './UserChooserWidgetHandler'; +export * from './WordQuizWidgetHandler'; diff --git a/src/common/layout/LayoutBadgeImageView.tsx b/src/common/layout/LayoutBadgeImageView.tsx index 8c48acd1..43a59f68 100644 --- a/src/common/layout/LayoutBadgeImageView.tsx +++ b/src/common/layout/LayoutBadgeImageView.tsx @@ -1,7 +1,6 @@ import { BadgeImageReadyEvent, NitroSprite, TextureUtils } from '@nitrots/nitro-renderer'; import { CSSProperties, FC, useEffect, useMemo, useState } from 'react'; import { GetSessionDataManager, LocalizeBadgeDescription, LocalizeBadgeName, LocalizeText } from '../../api'; -import { BadgeInformationView } from '../../views/shared/badge-image/badge-info/BadgeInformationView'; import { Base, BaseProps } from '../Base'; export interface LayoutBadgeImageViewProps extends BaseProps @@ -86,9 +85,22 @@ export const LayoutBadgeImageView: FC = props => return () => GetSessionDataManager().events.removeEventListener(BadgeImageReadyEvent.IMAGE_READY, onBadgeImageReadyEvent); }, [ badgeCode, isGroup ]); + const BadgeInformationView = (props: { title: string, description: string }) => + { + const { title = null, description = null } = props; + + return ( + +
{ title }
+
{ description }
+ + ); + }; + return ( - { showInfo && } + { showInfo && + } { children } ); diff --git a/src/views/room/RoomColorView.tsx b/src/views/room/RoomColorView.tsx index 813fdee9..12ecf48a 100644 --- a/src/views/room/RoomColorView.tsx +++ b/src/views/room/RoomColorView.tsx @@ -2,7 +2,7 @@ import { ColorConverter, NitroAdjustmentFilter, NitroContainer, NitroSprite, Nit import { FC, useCallback, useState } from 'react'; import { GetNitroInstance, GetRoomEngine, RoomWidgetUpdateBackgroundColorPreviewEvent, RoomWidgetUpdateRoomViewEvent } from '../../api'; import { UseEventDispatcherHook, UseMountEffect, UseRoomEngineEvent } from '../../hooks'; -import { useRoomContext } from './context/RoomContext'; +import { useRoomContext } from './RoomContext'; export const RoomColorView: FC<{}> = props => { diff --git a/src/views/room/RoomContext.tsx b/src/views/room/RoomContext.tsx new file mode 100644 index 00000000..d26cbf1d --- /dev/null +++ b/src/views/room/RoomContext.tsx @@ -0,0 +1,25 @@ +import { IEventDispatcher, IRoomSession } from '@nitrots/nitro-renderer'; +import { createContext, FC, ProviderProps, useContext } from 'react'; +import { IRoomWidgetHandlerManager } from '../../api'; + +interface IRoomContext +{ + roomSession: IRoomSession; + canvasId: number; + eventDispatcher: IEventDispatcher; + widgetHandler: IRoomWidgetHandlerManager; +} + +const RoomContext = createContext({ + roomSession: null, + canvasId: -1, + eventDispatcher: null, + widgetHandler: null +}); + +export const RoomContextProvider: FC> = props => +{ + return { props.children } +} + +export const useRoomContext = () => useContext(RoomContext); diff --git a/src/views/room/RoomView.tsx b/src/views/room/RoomView.tsx index 7a768344..8c067e17 100644 --- a/src/views/room/RoomView.tsx +++ b/src/views/room/RoomView.tsx @@ -1,18 +1,19 @@ -import { EventDispatcher, NitroRectangle, RoomGeometry, RoomVariableEnum, Vector3d } from '@nitrots/nitro-renderer'; +import { EventDispatcher, IRoomSession, NitroRectangle, RoomGeometry, RoomVariableEnum, Vector3d } from '@nitrots/nitro-renderer'; import { FC, useEffect, useRef, useState } from 'react'; -import { DispatchMouseEvent, DispatchTouchEvent, DoorbellWidgetHandler, FriendRequestHandler, FurniChooserWidgetHandler, FurnitureContextMenuWidgetHandler, FurnitureCreditWidgetHandler, FurnitureCustomStackHeightWidgetHandler, FurnitureDimmerWidgetHandler, FurnitureExternalImageWidgetHandler, FurnitureMannequinWidgetHandler, FurniturePresentWidgetHandler, GetNitroInstance, GetRoomEngine, InitializeRoomInstanceRenderingCanvas, IRoomWidgetHandlerManager, RoomWidgetAvatarInfoHandler, RoomWidgetChatHandler, RoomWidgetChatInputHandler, RoomWidgetHandlerManager, RoomWidgetInfostandHandler, RoomWidgetRoomToolsHandler, RoomWidgetUpdateRoomViewEvent, UserChooserWidgetHandler } from '../../api'; -import { FurnitureYoutubeDisplayWidgetHandler } from '../../api/nitro/room/widgets/handlers/FurnitureYoutubeDisplayWidgetHandler'; -import { PollWidgetHandler } from '../../api/nitro/room/widgets/handlers/PollWidgetHandler'; -import { WordQuizWidgetHandler } from '../../api/nitro/room/widgets/handlers/WordQuizWidgetHandler'; -import { RoomContextProvider } from './context/RoomContext'; +import { DispatchMouseEvent, DispatchTouchEvent, DoorbellWidgetHandler, FriendRequestHandler, FurniChooserWidgetHandler, FurnitureContextMenuWidgetHandler, FurnitureCreditWidgetHandler, FurnitureCustomStackHeightWidgetHandler, FurnitureDimmerWidgetHandler, FurnitureExternalImageWidgetHandler, FurnitureMannequinWidgetHandler, FurniturePresentWidgetHandler, FurnitureYoutubeDisplayWidgetHandler, GetNitroInstance, GetRoomEngine, InitializeRoomInstanceRenderingCanvas, IRoomWidgetHandlerManager, PollWidgetHandler, RoomWidgetAvatarInfoHandler, RoomWidgetChatHandler, RoomWidgetChatInputHandler, RoomWidgetHandlerManager, RoomWidgetInfostandHandler, RoomWidgetRoomToolsHandler, RoomWidgetUpdateRoomViewEvent, UserChooserWidgetHandler, WordQuizWidgetHandler } from '../../api'; +import { Base } from '../../common'; import { RoomColorView } from './RoomColorView'; -import { RoomViewProps } from './RoomView.types'; +import { RoomContextProvider } from './RoomContext'; import { RoomWidgetsView } from './widgets/RoomWidgetsView'; +interface RoomViewProps +{ + roomSession: IRoomSession; +} + export const RoomView: FC = props => { const { roomSession = null } = props; - const [ roomCanvas, setRoomCanvas ] = useState(null); const [ canvasId, setCanvasId ] = useState(-1); const [ widgetHandler, setWidgetHandler ] = useState(null); const elementRef = useRef(); @@ -23,7 +24,6 @@ export const RoomView: FC = props => { window.onresize = null; - setRoomCanvas(null); setCanvasId(-1); setWidgetHandler(null); @@ -121,7 +121,6 @@ export const RoomView: FC = props => if(elementRef && elementRef.current) elementRef.current.appendChild(canvas); - setRoomCanvas(canvas); setCanvasId(canvasId); }, [ roomSession ]); @@ -129,7 +128,7 @@ export const RoomView: FC = props => return ( -
+ { widgetHandler && <> diff --git a/src/views/room/RoomView.types.ts b/src/views/room/RoomView.types.ts deleted file mode 100644 index b24c79b6..00000000 --- a/src/views/room/RoomView.types.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { IRoomSession } from '@nitrots/nitro-renderer'; - -export interface RoomViewProps -{ - roomSession: IRoomSession; -} diff --git a/src/views/room/context/RoomContext.tsx b/src/views/room/context/RoomContext.tsx deleted file mode 100644 index a4ae5222..00000000 --- a/src/views/room/context/RoomContext.tsx +++ /dev/null @@ -1,16 +0,0 @@ -import { createContext, FC, useContext } from 'react'; -import { IRoomContext, RoomContextProps } from './RoomContext.types'; - -const RoomContext = createContext({ - roomSession: null, - canvasId: -1, - eventDispatcher: null, - widgetHandler: null -}); - -export const RoomContextProvider: FC = props => -{ - return { props.children } -} - -export const useRoomContext = () => useContext(RoomContext); diff --git a/src/views/room/context/RoomContext.types.ts b/src/views/room/context/RoomContext.types.ts deleted file mode 100644 index d37a6546..00000000 --- a/src/views/room/context/RoomContext.types.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { IEventDispatcher, IRoomSession } from '@nitrots/nitro-renderer'; -import { ProviderProps } from 'react'; -import { IRoomWidgetHandlerManager } from '../../../api'; - -export interface IRoomContext -{ - roomSession: IRoomSession; - canvasId: number; - eventDispatcher: IEventDispatcher; - widgetHandler: IRoomWidgetHandlerManager; -} - -export interface RoomContextProps extends ProviderProps -{ - -} diff --git a/src/views/room/widgets/RoomWidgetsView.tsx b/src/views/room/widgets/RoomWidgetsView.tsx index dc00e81b..0dea7dd6 100644 --- a/src/views/room/widgets/RoomWidgetsView.tsx +++ b/src/views/room/widgets/RoomWidgetsView.tsx @@ -5,7 +5,7 @@ import { FriendRequestEvent } from '../../../events'; import { UseRoomEngineEvent, UseRoomSessionManagerEvent, UseUiEvent } from '../../../hooks'; import { NotificationAlertType } from '../../notification-center/common/NotificationAlertType'; import { NotificationUtilities } from '../../notification-center/common/NotificationUtilities'; -import { useRoomContext } from '../context/RoomContext'; +import { useRoomContext } from '../RoomContext'; import { AvatarInfoWidgetView } from './avatar-info/AvatarInfoWidgetView'; import { ChatInputView } from './chat-input/ChatInputView'; import { ChatWidgetView } from './chat/ChatWidgetView'; diff --git a/src/views/room/widgets/avatar-info/AvatarInfoUseProductConfirmView.tsx b/src/views/room/widgets/avatar-info/AvatarInfoUseProductConfirmView.tsx index 35a3c475..603cbe59 100644 --- a/src/views/room/widgets/avatar-info/AvatarInfoUseProductConfirmView.tsx +++ b/src/views/room/widgets/avatar-info/AvatarInfoUseProductConfirmView.tsx @@ -4,7 +4,7 @@ import { GetFurnitureDataForRoomObject, GetRoomEngine, LocalizeText, RoomWidgetU import { Base, Button, Column, Flex, NitroCardContentView, NitroCardHeaderView, NitroCardView, Text } from '../../../../common'; import { FurniCategory } from '../../../../components/inventory/common/FurniCategory'; import { PetImageView } from '../../../shared/pet-image/PetImageView'; -import { useRoomContext } from '../../context/RoomContext'; +import { useRoomContext } from '../../RoomContext'; interface AvatarInfoUseProductConfirmViewProps { diff --git a/src/views/room/widgets/avatar-info/AvatarInfoUseProductView.tsx b/src/views/room/widgets/avatar-info/AvatarInfoUseProductView.tsx index bbb5c9fb..07d2b4a0 100644 --- a/src/views/room/widgets/avatar-info/AvatarInfoUseProductView.tsx +++ b/src/views/room/widgets/avatar-info/AvatarInfoUseProductView.tsx @@ -2,7 +2,7 @@ import { RoomObjectCategory, RoomObjectType } from '@nitrots/nitro-renderer'; import { FC, useCallback, useEffect, useState } from 'react'; import { GetFurnitureDataForRoomObject, LocalizeText, UseProductItem } from '../../../../api'; import { FurniCategory } from '../../../../components/inventory/common/FurniCategory'; -import { useRoomContext } from '../../context/RoomContext'; +import { useRoomContext } from '../../RoomContext'; import { ContextMenuHeaderView } from '../context-menu/ContextMenuHeaderView'; import { ContextMenuListItemView } from '../context-menu/ContextMenuListItemView'; import { ContextMenuView } from '../context-menu/ContextMenuView'; diff --git a/src/views/room/widgets/avatar-info/AvatarInfoWidgetAvatarView.tsx b/src/views/room/widgets/avatar-info/AvatarInfoWidgetAvatarView.tsx index 1bcd842e..44e4db4e 100644 --- a/src/views/room/widgets/avatar-info/AvatarInfoWidgetAvatarView.tsx +++ b/src/views/room/widgets/avatar-info/AvatarInfoWidgetAvatarView.tsx @@ -3,7 +3,7 @@ import { RoomControllerLevel, RoomObjectCategory, RoomObjectVariable } from '@ni import { FC, useEffect, useMemo, useState } from 'react'; import { GetOwnRoomObject, GetUserProfile, LocalizeText, RoomWidgetMessage, RoomWidgetUpdateInfostandUserEvent, RoomWidgetUserActionMessage } from '../../../../api'; import { BatchUpdates } from '../../../../hooks'; -import { useRoomContext } from '../../context/RoomContext'; +import { useRoomContext } from '../../RoomContext'; import { ContextMenuHeaderView } from '../context-menu/ContextMenuHeaderView'; import { ContextMenuListItemView } from '../context-menu/ContextMenuListItemView'; import { ContextMenuView } from '../context-menu/ContextMenuView'; diff --git a/src/views/room/widgets/avatar-info/AvatarInfoWidgetDecorateView.tsx b/src/views/room/widgets/avatar-info/AvatarInfoWidgetDecorateView.tsx index e05f32b8..46616411 100644 --- a/src/views/room/widgets/avatar-info/AvatarInfoWidgetDecorateView.tsx +++ b/src/views/room/widgets/avatar-info/AvatarInfoWidgetDecorateView.tsx @@ -1,7 +1,7 @@ import { RoomObjectCategory } from '@nitrots/nitro-renderer'; import { FC } from 'react'; import { LocalizeText, RoomWidgetUpdateDecorateModeEvent } from '../../../../api'; -import { useRoomContext } from '../../context/RoomContext'; +import { useRoomContext } from '../../RoomContext'; import { ContextMenuListItemView } from '../context-menu/ContextMenuListItemView'; import { ContextMenuListView } from '../context-menu/ContextMenuListView'; import { ContextMenuView } from '../context-menu/ContextMenuView'; diff --git a/src/views/room/widgets/avatar-info/AvatarInfoWidgetOwnAvatarView.tsx b/src/views/room/widgets/avatar-info/AvatarInfoWidgetOwnAvatarView.tsx index a0952c1f..3b12ce59 100644 --- a/src/views/room/widgets/avatar-info/AvatarInfoWidgetOwnAvatarView.tsx +++ b/src/views/room/widgets/avatar-info/AvatarInfoWidgetOwnAvatarView.tsx @@ -5,7 +5,7 @@ import { CreateLinkEvent, GetCanStandUp, GetCanUseExpression, GetOwnPosture, Get import { Flex, LayoutCurrencyIcon } from '../../../../common'; import { HelpNameChangeEvent } from '../../../../events'; import { DispatchUiEvent } from '../../../../hooks'; -import { useRoomContext } from '../../context/RoomContext'; +import { useRoomContext } from '../../RoomContext'; import { ContextMenuHeaderView } from '../context-menu/ContextMenuHeaderView'; import { ContextMenuListItemView } from '../context-menu/ContextMenuListItemView'; import { ContextMenuView } from '../context-menu/ContextMenuView'; diff --git a/src/views/room/widgets/avatar-info/AvatarInfoWidgetOwnPetView.tsx b/src/views/room/widgets/avatar-info/AvatarInfoWidgetOwnPetView.tsx index c7acce73..5eac0096 100644 --- a/src/views/room/widgets/avatar-info/AvatarInfoWidgetOwnPetView.tsx +++ b/src/views/room/widgets/avatar-info/AvatarInfoWidgetOwnPetView.tsx @@ -2,7 +2,7 @@ import { PetType, RoomObjectCategory, RoomObjectType, RoomObjectVariable } from import { FC, useEffect, useMemo, useState } from 'react'; import { GetOwnRoomObject, LocalizeText, RoomWidgetMessage, RoomWidgetUpdateInfostandPetEvent, RoomWidgetUserActionMessage } from '../../../../api'; import { BatchUpdates } from '../../../../hooks'; -import { useRoomContext } from '../../context/RoomContext'; +import { useRoomContext } from '../../RoomContext'; import { ContextMenuHeaderView } from '../context-menu/ContextMenuHeaderView'; import { ContextMenuListItemView } from '../context-menu/ContextMenuListItemView'; import { ContextMenuView } from '../context-menu/ContextMenuView'; diff --git a/src/views/room/widgets/avatar-info/AvatarInfoWidgetPetView.tsx b/src/views/room/widgets/avatar-info/AvatarInfoWidgetPetView.tsx index 1ba9f5c2..5f09818f 100644 --- a/src/views/room/widgets/avatar-info/AvatarInfoWidgetPetView.tsx +++ b/src/views/room/widgets/avatar-info/AvatarInfoWidgetPetView.tsx @@ -2,7 +2,7 @@ import { PetType, RoomControllerLevel, RoomObjectCategory, RoomObjectType, RoomO import { FC, useEffect, useMemo, useState } from 'react'; import { GetOwnRoomObject, GetSessionDataManager, LocalizeText, RoomWidgetMessage, RoomWidgetUpdateInfostandPetEvent, RoomWidgetUserActionMessage } from '../../../../api'; import { BatchUpdates } from '../../../../hooks'; -import { useRoomContext } from '../../context/RoomContext'; +import { useRoomContext } from '../../RoomContext'; import { ContextMenuHeaderView } from '../context-menu/ContextMenuHeaderView'; import { ContextMenuListItemView } from '../context-menu/ContextMenuListItemView'; import { ContextMenuView } from '../context-menu/ContextMenuView'; diff --git a/src/views/room/widgets/avatar-info/AvatarInfoWidgetRentableBotView.tsx b/src/views/room/widgets/avatar-info/AvatarInfoWidgetRentableBotView.tsx index 6376b470..1aa4f8fd 100644 --- a/src/views/room/widgets/avatar-info/AvatarInfoWidgetRentableBotView.tsx +++ b/src/views/room/widgets/avatar-info/AvatarInfoWidgetRentableBotView.tsx @@ -3,7 +3,7 @@ import { FC, useCallback, useEffect, useState } from 'react'; import { GetNitroInstance, LocalizeText, RoomWidgetUpdateInfostandRentableBotEvent, RoomWidgetUpdateRentableBotChatEvent, SendMessageComposer } from '../../../../api'; import { Button, Column, Flex, Text } from '../../../../common'; import { UseMessageEventHook } from '../../../../hooks'; -import { useRoomContext } from '../../context/RoomContext'; +import { useRoomContext } from '../../RoomContext'; import { ContextMenuHeaderView } from '../context-menu/ContextMenuHeaderView'; import { ContextMenuListItemView } from '../context-menu/ContextMenuListItemView'; import { ContextMenuView } from '../context-menu/ContextMenuView'; diff --git a/src/views/room/widgets/avatar-info/AvatarInfoWidgetView.tsx b/src/views/room/widgets/avatar-info/AvatarInfoWidgetView.tsx index 8491af1a..a5f4652b 100644 --- a/src/views/room/widgets/avatar-info/AvatarInfoWidgetView.tsx +++ b/src/views/room/widgets/avatar-info/AvatarInfoWidgetView.tsx @@ -2,7 +2,7 @@ import { RoomEnterEffect, RoomObjectCategory } from '@nitrots/nitro-renderer'; import { FC, useCallback, useMemo, useState } from 'react'; import { GetRoomSession, GetSessionDataManager, RoomWidgetObjectNameEvent, RoomWidgetRoomObjectMessage, RoomWidgetUpdateDanceStatusEvent, RoomWidgetUpdateDecorateModeEvent, RoomWidgetUpdateInfostandEvent, RoomWidgetUpdateInfostandFurniEvent, RoomWidgetUpdateInfostandPetEvent, RoomWidgetUpdateInfostandRentableBotEvent, RoomWidgetUpdateInfostandUserEvent, RoomWidgetUpdateRentableBotChatEvent, RoomWidgetUpdateRoomEngineEvent, RoomWidgetUpdateRoomObjectEvent, RoomWidgetUseProductBubbleEvent, UseProductItem } from '../../../../api'; import { UseEventDispatcherHook } from '../../../../hooks'; -import { useRoomContext } from '../../context/RoomContext'; +import { useRoomContext } from '../../RoomContext'; import { AvatarInfoRentableBotChatView } from './AvatarInfoRentableBotChatView'; import { AvatarInfoUseProductConfirmView } from './AvatarInfoUseProductConfirmView'; import { AvatarInfoUseProductView } from './AvatarInfoUseProductView'; diff --git a/src/views/room/widgets/chat-input/ChatInputView.tsx b/src/views/room/widgets/chat-input/ChatInputView.tsx index fcffea67..7a2d4aa5 100644 --- a/src/views/room/widgets/chat-input/ChatInputView.tsx +++ b/src/views/room/widgets/chat-input/ChatInputView.tsx @@ -3,7 +3,7 @@ import { FC, useCallback, useEffect, useMemo, useRef, useState } from 'react'; import { createPortal } from 'react-dom'; import { GetConfiguration, GetSessionDataManager, LocalizeText, RoomWidgetChatMessage, RoomWidgetChatTypingMessage, RoomWidgetUpdateChatInputContentEvent, RoomWidgetUpdateInfostandUserEvent, RoomWidgetUpdateRoomObjectEvent } from '../../../../api'; import { UseEventDispatcherHook } from '../../../../hooks'; -import { useRoomContext } from '../../context/RoomContext'; +import { useRoomContext } from '../../RoomContext'; import { ChatInputStyleSelectorView } from './ChatInputStyleSelectorView'; export const ChatInputView: FC<{}> = props => diff --git a/src/views/room/widgets/chat/ChatWidgetView.tsx b/src/views/room/widgets/chat/ChatWidgetView.tsx index e56d8f66..e36923ff 100644 --- a/src/views/room/widgets/chat/ChatWidgetView.tsx +++ b/src/views/room/widgets/chat/ChatWidgetView.tsx @@ -2,7 +2,7 @@ import { NitroPoint, RoomDragEvent } from '@nitrots/nitro-renderer'; import { FC, useCallback, useEffect, useRef, useState } from 'react'; import { RoomWidgetChatSelectAvatarMessage, RoomWidgetRoomObjectMessage, RoomWidgetUpdateChatEvent } from '../../../../api'; import { UseEventDispatcherHook, UseRoomEngineEvent } from '../../../../hooks'; -import { useRoomContext } from '../../context/RoomContext'; +import { useRoomContext } from '../../RoomContext'; import { ChatWidgetMessageView } from './ChatWidgetMessageView'; import { ChatBubbleMessage } from './common/ChatBubbleMessage'; diff --git a/src/views/room/widgets/choosers/ChooserWidgetView.tsx b/src/views/room/widgets/choosers/ChooserWidgetView.tsx index 93370811..10dfcb9d 100644 --- a/src/views/room/widgets/choosers/ChooserWidgetView.tsx +++ b/src/views/room/widgets/choosers/ChooserWidgetView.tsx @@ -3,7 +3,7 @@ import { AutoSizer, List, ListRowProps, ListRowRenderer } from 'react-virtualize import { RoomObjectItem, RoomWidgetRoomObjectMessage } from '../../../../api'; import { LocalizeText } from '../../../../api/utils'; import { Column, Flex, NitroCardContentView, NitroCardHeaderView, NitroCardView, Text } from '../../../../common'; -import { useRoomContext } from '../../context/RoomContext'; +import { useRoomContext } from '../../RoomContext'; interface ChooserWidgetViewProps { diff --git a/src/views/room/widgets/choosers/FurniChooserWidgetView.tsx b/src/views/room/widgets/choosers/FurniChooserWidgetView.tsx index 5a0b876c..6264d09c 100644 --- a/src/views/room/widgets/choosers/FurniChooserWidgetView.tsx +++ b/src/views/room/widgets/choosers/FurniChooserWidgetView.tsx @@ -1,7 +1,7 @@ import { FC, useCallback, useState } from 'react'; import { LocalizeText, RoomObjectItem, RoomWidgetChooserContentEvent, RoomWidgetRequestWidgetMessage, RoomWidgetUpdateRoomObjectEvent } from '../../../../api'; import { BatchUpdates, UseEventDispatcherHook } from '../../../../hooks'; -import { useRoomContext } from '../../context/RoomContext'; +import { useRoomContext } from '../../RoomContext'; import { ChooserWidgetView } from './ChooserWidgetView'; export const FurniChooserWidgetView: FC<{}> = props => diff --git a/src/views/room/widgets/choosers/UserChooserWidgetView.tsx b/src/views/room/widgets/choosers/UserChooserWidgetView.tsx index ace2bb26..be9ccf5e 100644 --- a/src/views/room/widgets/choosers/UserChooserWidgetView.tsx +++ b/src/views/room/widgets/choosers/UserChooserWidgetView.tsx @@ -1,7 +1,7 @@ import { FC, useCallback, useState } from 'react'; import { LocalizeText, RoomObjectItem, RoomWidgetChooserContentEvent, RoomWidgetRequestWidgetMessage, RoomWidgetUpdateRoomObjectEvent } from '../../../../api'; import { BatchUpdates, UseEventDispatcherHook } from '../../../../hooks'; -import { useRoomContext } from '../../context/RoomContext'; +import { useRoomContext } from '../../RoomContext'; import { ChooserWidgetView } from './ChooserWidgetView'; export const UserChooserWidgetView: FC<{}> = props => diff --git a/src/views/room/widgets/doorbell/DoorbellWidgetView.tsx b/src/views/room/widgets/doorbell/DoorbellWidgetView.tsx index 9516f01d..8cf1b786 100644 --- a/src/views/room/widgets/doorbell/DoorbellWidgetView.tsx +++ b/src/views/room/widgets/doorbell/DoorbellWidgetView.tsx @@ -2,7 +2,7 @@ import { FC, useCallback, useState } from 'react'; import { LocalizeText, RoomWidgetDoorbellEvent, RoomWidgetLetUserInMessage } from '../../../../api'; import { Base, Button, Column, Flex, Grid, NitroCardContentView, NitroCardHeaderView, NitroCardView } from '../../../../common'; import { BatchUpdates, UseEventDispatcherHook } from '../../../../hooks'; -import { useRoomContext } from '../../context/RoomContext'; +import { useRoomContext } from '../../RoomContext'; export const DoorbellWidgetView: FC<{}> = props => { diff --git a/src/views/room/widgets/friend-request/FriendRequestDialogView.tsx b/src/views/room/widgets/friend-request/FriendRequestDialogView.tsx index 0238a8c3..8cf7134b 100644 --- a/src/views/room/widgets/friend-request/FriendRequestDialogView.tsx +++ b/src/views/room/widgets/friend-request/FriendRequestDialogView.tsx @@ -1,7 +1,7 @@ import { FC } from 'react'; import { LocalizeText, RoomWidgetFriendRequestMessage } from '../../../../api'; import { Base, Button, Column, Flex, Text } from '../../../../common'; -import { useRoomContext } from '../../context/RoomContext'; +import { useRoomContext } from '../../RoomContext'; import { UserLocationView } from '../user-location/UserLocationView'; interface FriendRequestDialogViewProps diff --git a/src/views/room/widgets/friend-request/FriendRequestWidgetView.tsx b/src/views/room/widgets/friend-request/FriendRequestWidgetView.tsx index fa59e20a..996af565 100644 --- a/src/views/room/widgets/friend-request/FriendRequestWidgetView.tsx +++ b/src/views/room/widgets/friend-request/FriendRequestWidgetView.tsx @@ -1,7 +1,7 @@ import { FC, useCallback, useState } from 'react'; import { RoomWidgetUpdateFriendRequestEvent } from '../../../../api'; import { UseEventDispatcherHook } from '../../../../hooks'; -import { useRoomContext } from '../../context/RoomContext'; +import { useRoomContext } from '../../RoomContext'; import { FriendRequestDialogView } from './FriendRequestDialogView'; export const FriendRequestWidgetView: FC<{}> = props => diff --git a/src/views/room/widgets/furniture/background-color/FurnitureBackgroundColorView.tsx b/src/views/room/widgets/furniture/background-color/FurnitureBackgroundColorView.tsx index e401b65d..3145940e 100644 --- a/src/views/room/widgets/furniture/background-color/FurnitureBackgroundColorView.tsx +++ b/src/views/room/widgets/furniture/background-color/FurnitureBackgroundColorView.tsx @@ -4,7 +4,7 @@ import ReactSlider from 'react-slider'; import { GetRoomEngine, GetSessionDataManager, LocalizeText, RoomWidgetUpdateBackgroundColorPreviewEvent, RoomWidgetUpdateRoomObjectEvent, SendMessageComposer } from '../../../../../api'; import { Button, Column, NitroCardContentView, NitroCardHeaderView, NitroCardView, Text } from '../../../../../common'; import { BatchUpdates, UseEventDispatcherHook, UseRoomEngineEvent } from '../../../../../hooks'; -import { useRoomContext } from '../../../context/RoomContext'; +import { useRoomContext } from '../../../RoomContext'; export const FurnitureBackgroundColorView: FC<{}> = props => { diff --git a/src/views/room/widgets/furniture/badge-display/FurnitureBadgeDisplayView.tsx b/src/views/room/widgets/furniture/badge-display/FurnitureBadgeDisplayView.tsx index 0e83e21d..079fc733 100644 --- a/src/views/room/widgets/furniture/badge-display/FurnitureBadgeDisplayView.tsx +++ b/src/views/room/widgets/furniture/badge-display/FurnitureBadgeDisplayView.tsx @@ -3,7 +3,7 @@ import { FC, useCallback, useState } from 'react'; import { GetRoomEngine, LocalizeBadgeDescription, LocalizeBadgeName, RoomWidgetUpdateRoomObjectEvent } from '../../../../../api'; import { LayoutTrophyView } from '../../../../../common'; import { UseEventDispatcherHook, UseRoomEngineEvent } from '../../../../../hooks'; -import { useRoomContext } from '../../../context/RoomContext'; +import { useRoomContext } from '../../../RoomContext'; import { FurnitureTrophyData } from '../trophy/FurnitureTrophyData'; export const FurnitureBadgeDisplayView: FC<{}> = props => diff --git a/src/views/room/widgets/furniture/context-menu/EffectBoxConfirmView.tsx b/src/views/room/widgets/furniture/context-menu/EffectBoxConfirmView.tsx index 83485183..79662119 100644 --- a/src/views/room/widgets/furniture/context-menu/EffectBoxConfirmView.tsx +++ b/src/views/room/widgets/furniture/context-menu/EffectBoxConfirmView.tsx @@ -1,7 +1,7 @@ import { FC } from 'react'; import { LocalizeText } from '../../../../../api'; import { Button, Column, Flex, NitroCardContentView, NitroCardHeaderView, NitroCardView, Text } from '../../../../../common'; -import { useRoomContext } from '../../../context/RoomContext'; +import { useRoomContext } from '../../../RoomContext'; interface EffectBoxConfirmViewProps { diff --git a/src/views/room/widgets/furniture/context-menu/FurnitureContextMenuView.tsx b/src/views/room/widgets/furniture/context-menu/FurnitureContextMenuView.tsx index 2c0411d5..2bb70ff2 100644 --- a/src/views/room/widgets/furniture/context-menu/FurnitureContextMenuView.tsx +++ b/src/views/room/widgets/furniture/context-menu/FurnitureContextMenuView.tsx @@ -2,7 +2,7 @@ import { ContextMenuEnum, GroupFurniContextMenuInfoMessageEvent, GroupFurniConte import { FC, useCallback, useState } from 'react'; import { GetGroupInformation, GetRoomEngine, IsOwnerOfFurniture, LocalizeText, RoomWidgetFurniActionMessage, TryJoinGroup, TryVisitRoom } from '../../../../../api'; import { BatchUpdates, UseMessageEventHook, UseRoomEngineEvent } from '../../../../../hooks'; -import { useRoomContext } from '../../../context/RoomContext'; +import { useRoomContext } from '../../../RoomContext'; import { ContextMenuHeaderView } from '../../context-menu/ContextMenuHeaderView'; import { ContextMenuListItemView } from '../../context-menu/ContextMenuListItemView'; import { ContextMenuView } from '../../context-menu/ContextMenuView'; diff --git a/src/views/room/widgets/furniture/context-menu/MonsterPlantSeedConfirmView.tsx b/src/views/room/widgets/furniture/context-menu/MonsterPlantSeedConfirmView.tsx index 4e7e056b..91a63b03 100644 --- a/src/views/room/widgets/furniture/context-menu/MonsterPlantSeedConfirmView.tsx +++ b/src/views/room/widgets/furniture/context-menu/MonsterPlantSeedConfirmView.tsx @@ -3,7 +3,7 @@ import { FC, useEffect, useState } from 'react'; import { GetFurnitureDataForRoomObject, LocalizeText, RoomWidgetUseProductMessage } from '../../../../../api'; import { Base, Button, Column, Flex, NitroCardContentView, NitroCardHeaderView, NitroCardView, Text } from '../../../../../common'; import { FurniCategory } from '../../../../../components/inventory/common/FurniCategory'; -import { useRoomContext } from '../../../context/RoomContext'; +import { useRoomContext } from '../../../RoomContext'; interface MonsterPlantSeedConfirmViewProps { diff --git a/src/views/room/widgets/furniture/context-menu/PurchasableClothingConfirmView.tsx b/src/views/room/widgets/furniture/context-menu/PurchasableClothingConfirmView.tsx index ca4eca5c..b58c0f28 100644 --- a/src/views/room/widgets/furniture/context-menu/PurchasableClothingConfirmView.tsx +++ b/src/views/room/widgets/furniture/context-menu/PurchasableClothingConfirmView.tsx @@ -5,7 +5,7 @@ import { Base, Button, Column, Flex, NitroCardContentView, NitroCardHeaderView, import { FigureData } from '../../../../../components/avatar-editor/common/FigureData'; import { FurniCategory } from '../../../../../components/inventory/common/FurniCategory'; import { AvatarImageView } from '../../../../shared/avatar-image/AvatarImageView'; -import { useRoomContext } from '../../../context/RoomContext'; +import { useRoomContext } from '../../../RoomContext'; interface PurchasableClothingConfirmViewProps { diff --git a/src/views/room/widgets/furniture/custom-stack-height/FurnitureCustomStackHeightView.tsx b/src/views/room/widgets/furniture/custom-stack-height/FurnitureCustomStackHeightView.tsx index a028dbb6..f602610e 100644 --- a/src/views/room/widgets/furniture/custom-stack-height/FurnitureCustomStackHeightView.tsx +++ b/src/views/room/widgets/furniture/custom-stack-height/FurnitureCustomStackHeightView.tsx @@ -4,7 +4,7 @@ import ReactSlider from 'react-slider'; import { LocalizeText, RoomWidgetUpdateCustomStackHeightEvent, SendMessageComposer } from '../../../../../api'; import { Button, Column, Flex, NitroCardContentView, NitroCardHeaderView, NitroCardView, Text } from '../../../../../common'; import { BatchUpdates, UseEventDispatcherHook, UseMessageEventHook } from '../../../../../hooks'; -import { useRoomContext } from '../../../context/RoomContext'; +import { useRoomContext } from '../../../RoomContext'; const MAX_HEIGHT: number = 40; diff --git a/src/views/room/widgets/furniture/dimmer/FurnitureDimmerView.tsx b/src/views/room/widgets/furniture/dimmer/FurnitureDimmerView.tsx index d76b7f32..4b1b4182 100644 --- a/src/views/room/widgets/furniture/dimmer/FurnitureDimmerView.tsx +++ b/src/views/room/widgets/furniture/dimmer/FurnitureDimmerView.tsx @@ -5,7 +5,7 @@ import ReactSlider from 'react-slider'; import { ColorUtils, GetConfiguration, LocalizeText, RoomWidgetDimmerChangeStateMessage, RoomWidgetDimmerPreviewMessage, RoomWidgetDimmerSavePresetMessage, RoomWidgetUpdateDimmerEvent, RoomWidgetUpdateDimmerStateEvent } from '../../../../../api'; import { Base, Button, Column, Flex, Grid, NitroCardContentView, NitroCardHeaderView, NitroCardTabsItemView, NitroCardTabsView, NitroCardView, Text } from '../../../../../common'; import { BatchUpdates, UseEventDispatcherHook } from '../../../../../hooks'; -import { useRoomContext } from '../../../context/RoomContext'; +import { useRoomContext } from '../../../RoomContext'; import { DimmerFurnitureWidgetPresetItem } from './DimmerFurnitureWidgetPresetItem'; const AVAILABLE_COLORS: number[] = [7665141, 21495, 15161822, 15353138, 15923281, 8581961, 0]; diff --git a/src/views/room/widgets/furniture/exchange-credit/FurnitureExchangeCreditView.tsx b/src/views/room/widgets/furniture/exchange-credit/FurnitureExchangeCreditView.tsx index 91f31f46..0a80c569 100644 --- a/src/views/room/widgets/furniture/exchange-credit/FurnitureExchangeCreditView.tsx +++ b/src/views/room/widgets/furniture/exchange-credit/FurnitureExchangeCreditView.tsx @@ -2,7 +2,7 @@ import { FC, useCallback, useState } from 'react'; import { LocalizeText, RoomWidgetCreditFurniRedeemMessage, RoomWidgetUpdateCreditFurniEvent } from '../../../../../api'; import { Base, Button, Column, Flex, NitroCardContentView, NitroCardHeaderView, NitroCardView, Text } from '../../../../../common'; import { BatchUpdates, UseEventDispatcherHook } from '../../../../../hooks'; -import { useRoomContext } from '../../../context/RoomContext'; +import { useRoomContext } from '../../../RoomContext'; export const FurnitureExchangeCreditView: FC<{}> = props => { diff --git a/src/views/room/widgets/furniture/external-image/FurnitureExternalImageView.tsx b/src/views/room/widgets/furniture/external-image/FurnitureExternalImageView.tsx index 9c8fd159..8358e548 100644 --- a/src/views/room/widgets/furniture/external-image/FurnitureExternalImageView.tsx +++ b/src/views/room/widgets/furniture/external-image/FurnitureExternalImageView.tsx @@ -2,7 +2,7 @@ import { FC, useCallback, useState } from 'react'; import { IPhotoData, LocalizeText, RoomWidgetUpdateExternalImageEvent } from '../../../../../api'; import { Flex, NitroCardContentView, NitroCardHeaderView, NitroCardView, Text } from '../../../../../common'; import { BatchUpdates, UseEventDispatcherHook } from '../../../../../hooks'; -import { useRoomContext } from '../../../context/RoomContext'; +import { useRoomContext } from '../../../RoomContext'; export const FurnitureExternalImageView: FC<{}> = props => { diff --git a/src/views/room/widgets/furniture/friend-furni/FurnitureFriendFurniView.tsx b/src/views/room/widgets/furniture/friend-furni/FurnitureFriendFurniView.tsx index cee423a1..a04deeaf 100644 --- a/src/views/room/widgets/furniture/friend-furni/FurnitureFriendFurniView.tsx +++ b/src/views/room/widgets/furniture/friend-furni/FurnitureFriendFurniView.tsx @@ -4,7 +4,7 @@ import { GetRoomEngine, GetRoomSession, LocalizeText, RoomWidgetUpdateRoomObject import { DraggableWindow, NitroCardContentView, NitroCardHeaderView, NitroCardView } from '../../../../../common'; import { UseEventDispatcherHook, UseMessageEventHook, UseRoomEngineEvent } from '../../../../../hooks'; import { AvatarImageView } from '../../../../shared/avatar-image/AvatarImageView'; -import { useRoomContext } from '../../../context/RoomContext'; +import { useRoomContext } from '../../../RoomContext'; import { FurnitureEngravingLockData } from './FriendFurniLockData'; export const FurnitureFriendFurniView: FC<{}> = props => diff --git a/src/views/room/widgets/furniture/gift-opening/FurnitureGiftOpeningView.tsx b/src/views/room/widgets/furniture/gift-opening/FurnitureGiftOpeningView.tsx index 6a6c0669..8202ba62 100644 --- a/src/views/room/widgets/furniture/gift-opening/FurnitureGiftOpeningView.tsx +++ b/src/views/room/widgets/furniture/gift-opening/FurnitureGiftOpeningView.tsx @@ -5,7 +5,7 @@ import { Button, Column, Flex, LayoutGiftTagView, NitroCardContentView, NitroCar import { ProductTypeEnum } from '../../../../../components/catalog/common/ProductTypeEnum'; import { BatchUpdates } from '../../../../../hooks'; import { UseEventDispatcherHook } from '../../../../../hooks/events/UseEventDispatcherHook'; -import { useRoomContext } from '../../../context/RoomContext'; +import { useRoomContext } from '../../../RoomContext'; const FLOOR: string = 'floor'; const WALLPAPER: string = 'wallpaper'; diff --git a/src/views/room/widgets/furniture/high-score/FurnitureHighScoreView.tsx b/src/views/room/widgets/furniture/high-score/FurnitureHighScoreView.tsx index 25ce5d74..75949428 100644 --- a/src/views/room/widgets/furniture/high-score/FurnitureHighScoreView.tsx +++ b/src/views/room/widgets/furniture/high-score/FurnitureHighScoreView.tsx @@ -3,7 +3,7 @@ import { FC, useCallback, useState } from 'react'; import { GetRoomEngine, LocalizeText } from '../../../../../api'; import { Column, Flex, Text } from '../../../../../common'; import { UseRoomEngineEvent } from '../../../../../hooks'; -import { useRoomContext } from '../../../context/RoomContext'; +import { useRoomContext } from '../../../RoomContext'; import { ContextMenuHeaderView } from '../../context-menu/ContextMenuHeaderView'; import { ContextMenuListView } from '../../context-menu/ContextMenuListView'; import { ObjectLocationView } from '../../object-location/ObjectLocationView'; diff --git a/src/views/room/widgets/furniture/manipulation-menu/FurnitureManipulationMenuView.tsx b/src/views/room/widgets/furniture/manipulation-menu/FurnitureManipulationMenuView.tsx index 58aacdf6..3a54ed02 100644 --- a/src/views/room/widgets/furniture/manipulation-menu/FurnitureManipulationMenuView.tsx +++ b/src/views/room/widgets/furniture/manipulation-menu/FurnitureManipulationMenuView.tsx @@ -3,7 +3,7 @@ import { RoomObjectOperationType } from '@nitrots/nitro-renderer'; import { FC, useCallback, useEffect, useState } from 'react'; import { ProcessRoomObjectOperation, RoomWidgetUpdateDecorateModeEvent, RoomWidgetUpdateRoomObjectEvent } from '../../../../../api'; import { BatchUpdates, UseEventDispatcherHook } from '../../../../../hooks'; -import { useRoomContext } from '../../../context/RoomContext'; +import { useRoomContext } from '../../../RoomContext'; import { ObjectLocationView } from '../../object-location/ObjectLocationView'; export const FurnitureManipulationMenuView: FC<{}> = props => diff --git a/src/views/room/widgets/furniture/mannequin/FurnitureMannequinView.tsx b/src/views/room/widgets/furniture/mannequin/FurnitureMannequinView.tsx index 1d26436f..a1e0861d 100644 --- a/src/views/room/widgets/furniture/mannequin/FurnitureMannequinView.tsx +++ b/src/views/room/widgets/furniture/mannequin/FurnitureMannequinView.tsx @@ -4,7 +4,7 @@ import { GetAvatarRenderManager, GetSessionDataManager, LocalizeText, RoomWidget import { Base, Button, Column, Flex, LayoutCurrencyIcon, NitroCardContentView, NitroCardHeaderView, NitroCardView, Text } from '../../../../../common'; import { BatchUpdates, UseEventDispatcherHook } from '../../../../../hooks'; import { AvatarImageView } from '../../../../shared/avatar-image/AvatarImageView'; -import { useRoomContext } from '../../../context/RoomContext'; +import { useRoomContext } from '../../../RoomContext'; const MODE_NONE: number = -1; const MODE_CONTROLLER: number = 0; diff --git a/src/views/room/widgets/furniture/stickie/FurnitureStickieView.tsx b/src/views/room/widgets/furniture/stickie/FurnitureStickieView.tsx index 96c1c128..4d591075 100644 --- a/src/views/room/widgets/furniture/stickie/FurnitureStickieView.tsx +++ b/src/views/room/widgets/furniture/stickie/FurnitureStickieView.tsx @@ -3,7 +3,7 @@ import { FC, useCallback, useState } from 'react'; import { ColorUtils, GetRoomEngine, GetRoomSession, GetSessionDataManager, RoomWidgetUpdateRoomObjectEvent } from '../../../../../api'; import { DraggableWindow, DraggableWindowPosition } from '../../../../../common'; import { UseEventDispatcherHook, UseRoomEngineEvent } from '../../../../../hooks'; -import { useRoomContext } from '../../../context/RoomContext'; +import { useRoomContext } from '../../../RoomContext'; import { FurnitureStickieData } from './FurnitureStickieData'; import { getStickieColorName, STICKIE_COLORS } from './FurnitureStickieUtils'; diff --git a/src/views/room/widgets/furniture/trophy/FurnitureTrophyView.tsx b/src/views/room/widgets/furniture/trophy/FurnitureTrophyView.tsx index 0faf9e47..0ad805d9 100644 --- a/src/views/room/widgets/furniture/trophy/FurnitureTrophyView.tsx +++ b/src/views/room/widgets/furniture/trophy/FurnitureTrophyView.tsx @@ -3,7 +3,7 @@ import { FC, useCallback, useState } from 'react'; import { GetRoomEngine, RoomWidgetUpdateRoomObjectEvent } from '../../../../../api'; import { LayoutTrophyView } from '../../../../../common'; import { UseEventDispatcherHook, UseRoomEngineEvent } from '../../../../../hooks'; -import { useRoomContext } from '../../../context/RoomContext'; +import { useRoomContext } from '../../../RoomContext'; import { FurnitureTrophyData } from './FurnitureTrophyData'; export const FurnitureTrophyView: FC<{}> = props => diff --git a/src/views/room/widgets/furniture/youtube-tv/FurnitureYoutubeDisplayView.tsx b/src/views/room/widgets/furniture/youtube-tv/FurnitureYoutubeDisplayView.tsx index 6dd06b89..15e90b7c 100644 --- a/src/views/room/widgets/furniture/youtube-tv/FurnitureYoutubeDisplayView.tsx +++ b/src/views/room/widgets/furniture/youtube-tv/FurnitureYoutubeDisplayView.tsx @@ -4,7 +4,7 @@ import YouTube, { Options } from 'react-youtube'; import { FurnitureYoutubeDisplayWidgetHandler, LocalizeText, RoomWidgetUpdateYoutubeDisplayEvent, SendMessageComposer } from '../../../../../api'; import { Grid, LayoutGridItem, NitroCardContentView, NitroCardHeaderView, NitroCardView } from '../../../../../common'; import { BatchUpdates, UseEventDispatcherHook, UseMessageEventHook } from '../../../../../hooks'; -import { useRoomContext } from '../../../context/RoomContext'; +import { useRoomContext } from '../../../RoomContext'; import { YoutubeVideoPlaybackStateEnum } from './utils/YoutubeVideoPlaybackStateEnum'; export const FurnitureYoutubeDisplayView: FC<{}> = props => diff --git a/src/views/room/widgets/infostand/InfoStandWidgetFurniView.tsx b/src/views/room/widgets/infostand/InfoStandWidgetFurniView.tsx index 350d85ab..4b85b1b7 100644 --- a/src/views/room/widgets/infostand/InfoStandWidgetFurniView.tsx +++ b/src/views/room/widgets/infostand/InfoStandWidgetFurniView.tsx @@ -5,7 +5,7 @@ import { CreateLinkEvent, GetGroupInformation, GetRoomEngine, LocalizeText, Room import { Button, Column, Flex, LayoutBadgeImageView, LayoutRarityLevelView, Text, UserProfileIconView } from '../../../../common'; import { BatchUpdates, UseMessageEventHook } from '../../../../hooks'; import { LimitedEditionCompactPlateView } from '../../../shared/limited-edition/LimitedEditionCompactPlateView'; -import { useRoomContext } from '../../context/RoomContext'; +import { useRoomContext } from '../../RoomContext'; interface InfoStandWidgetFurniViewProps { diff --git a/src/views/room/widgets/infostand/InfoStandWidgetUserView.tsx b/src/views/room/widgets/infostand/InfoStandWidgetUserView.tsx index 296305be..f7ccd8a5 100644 --- a/src/views/room/widgets/infostand/InfoStandWidgetUserView.tsx +++ b/src/views/room/widgets/infostand/InfoStandWidgetUserView.tsx @@ -5,7 +5,7 @@ import { GetConfiguration, GetGroupInformation, LocalizeText, RoomWidgetChangeMo import { Base, Column, Flex, LayoutBadgeImageView, Text, UserProfileIconView } from '../../../../common'; import { BatchUpdates, UseEventDispatcherHook, UseMessageEventHook } from '../../../../hooks'; import { AvatarImageView } from '../../../shared/avatar-image/AvatarImageView'; -import { useRoomContext } from '../../context/RoomContext'; +import { useRoomContext } from '../../RoomContext'; import { InfoStandWidgetUserRelationshipsView } from './InfoStandWidgetUserRelationshipsView'; interface InfoStandWidgetUserViewProps diff --git a/src/views/room/widgets/infostand/InfoStandWidgetView.tsx b/src/views/room/widgets/infostand/InfoStandWidgetView.tsx index 1a8bf5c0..fae40a4e 100644 --- a/src/views/room/widgets/infostand/InfoStandWidgetView.tsx +++ b/src/views/room/widgets/infostand/InfoStandWidgetView.tsx @@ -2,7 +2,7 @@ import { FC, useCallback, useState } from 'react'; import { RoomWidgetRoomObjectMessage, RoomWidgetUpdateEvent, RoomWidgetUpdateInfostandEvent, RoomWidgetUpdateInfostandFurniEvent, RoomWidgetUpdateInfostandPetEvent, RoomWidgetUpdateInfostandRentableBotEvent, RoomWidgetUpdateInfostandUserEvent, RoomWidgetUpdateRoomObjectEvent } from '../../../../api'; import { Column } from '../../../../common'; import { UseEventDispatcherHook } from '../../../../hooks'; -import { useRoomContext } from '../../context/RoomContext'; +import { useRoomContext } from '../../RoomContext'; import { InfoStandWidgetBotView } from './InfoStandWidgetBotView'; import { InfoStandWidgetFurniView } from './InfoStandWidgetFurniView'; import { InfoStandWidgetPetView } from './InfoStandWidgetPetView'; diff --git a/src/views/room/widgets/room-thumbnail/RoomThumbnailWidgetView.tsx b/src/views/room/widgets/room-thumbnail/RoomThumbnailWidgetView.tsx index fdec765a..c7b4b253 100644 --- a/src/views/room/widgets/room-thumbnail/RoomThumbnailWidgetView.tsx +++ b/src/views/room/widgets/room-thumbnail/RoomThumbnailWidgetView.tsx @@ -4,7 +4,7 @@ import { GetRoomEngine } from '../../../../api'; import { LayoutMiniCameraView } from '../../../../common'; import { RoomWidgetThumbnailEvent } from '../../../../events'; import { UseUiEvent } from '../../../../hooks'; -import { useRoomContext } from '../../context/RoomContext'; +import { useRoomContext } from '../../RoomContext'; export const RoomThumbnailWidgetView: FC<{}> = props => { diff --git a/src/views/room/widgets/room-tools/RoomToolsWidgetView.tsx b/src/views/room/widgets/room-tools/RoomToolsWidgetView.tsx index 6bc4a5b9..b7ded8e4 100644 --- a/src/views/room/widgets/room-tools/RoomToolsWidgetView.tsx +++ b/src/views/room/widgets/room-tools/RoomToolsWidgetView.tsx @@ -5,7 +5,7 @@ import { CreateLinkEvent, LocalizeText, RoomWidgetZoomToggleMessage, SendMessage import { Base, Column, Flex, Text, TransitionAnimation, TransitionAnimationTypes } from '../../../../common'; import { NavigatorEvent } from '../../../../events'; import { BatchUpdates, DispatchUiEvent, UseMessageEventHook } from '../../../../hooks'; -import { useRoomContext } from '../../context/RoomContext'; +import { useRoomContext } from '../../RoomContext'; export const RoomToolsWidgetView: FC<{}> = props => { diff --git a/src/views/room/widgets/user-location/UserLocationView.tsx b/src/views/room/widgets/user-location/UserLocationView.tsx index 61c1cb49..d750f26a 100644 --- a/src/views/room/widgets/user-location/UserLocationView.tsx +++ b/src/views/room/widgets/user-location/UserLocationView.tsx @@ -1,7 +1,7 @@ import { RoomObjectCategory } from '@nitrots/nitro-renderer'; import { FC } from 'react'; import { BaseProps } from '../../../../common'; -import { useRoomContext } from '../../context/RoomContext'; +import { useRoomContext } from '../../RoomContext'; import { ObjectLocationView } from '../object-location/ObjectLocationView'; interface UserLocationViewProps extends BaseProps diff --git a/src/views/room/widgets/word-quiz/WordQuizWidgetView.tsx b/src/views/room/widgets/word-quiz/WordQuizWidgetView.tsx index 9f622471..b4220560 100644 --- a/src/views/room/widgets/word-quiz/WordQuizWidgetView.tsx +++ b/src/views/room/widgets/word-quiz/WordQuizWidgetView.tsx @@ -2,7 +2,7 @@ import { IQuestion } from '@nitrots/nitro-renderer'; import { FC, useCallback, useEffect, useState } from 'react'; import { RoomWidgetPollMessage, RoomWidgetWordQuizUpdateEvent } from '../../../../api'; import { BatchUpdates, UseEventDispatcherHook } from '../../../../hooks'; -import { useRoomContext } from '../../context/RoomContext'; +import { useRoomContext } from '../../RoomContext'; import { VALUE_KEY_DISLIKE, VALUE_KEY_LIKE, VoteValue } from './common/VoteValue'; import { WordQuizQuestionView } from './WordQuizQuestionView'; import { WordQuizVoteView } from './WordQuizVoteView';