From 22fc19da2b64502c43e8439db856c6136a5d3464 Mon Sep 17 00:00:00 2001 From: Bill Date: Tue, 1 Mar 2022 04:13:54 -0500 Subject: [PATCH] Remove console logs --- .../views/page/layout/pets/CatalogLayoutPetView.tsx | 2 -- src/components/inventory/InventoryMessageHandler.tsx | 4 ---- .../notification-center/common/NotificationUtilities.ts | 2 -- src/views/room/widgets/chat-input/ChatInputView.tsx | 1 - .../furniture/gift-opening/FurnitureGiftOpeningView.tsx | 8 +------- 5 files changed, 1 insertion(+), 16 deletions(-) diff --git a/src/components/catalog/views/page/layout/pets/CatalogLayoutPetView.tsx b/src/components/catalog/views/page/layout/pets/CatalogLayoutPetView.tsx index e18f6220..6b35eba7 100644 --- a/src/components/catalog/views/page/layout/pets/CatalogLayoutPetView.tsx +++ b/src/components/catalog/views/page/layout/pets/CatalogLayoutPetView.tsx @@ -78,8 +78,6 @@ export const CatalogLayoutPetView: FC = props => { let key: string = ''; - console.log(approvalResult); - switch(approvalResult) { case 1: diff --git a/src/components/inventory/InventoryMessageHandler.tsx b/src/components/inventory/InventoryMessageHandler.tsx index e313bc7b..1cef493b 100644 --- a/src/components/inventory/InventoryMessageHandler.tsx +++ b/src/components/inventory/InventoryMessageHandler.tsx @@ -227,8 +227,6 @@ export const InventoryMessageHandler: FC<{}> = props => { const parser = event.getParser(); - console.log(parser); - dispatchFurnitureState({ type: InventoryFurnitureActions.UPDATE_TRADE, payload: { @@ -292,8 +290,6 @@ export const InventoryMessageHandler: FC<{}> = props => { const parser = event.getParser(); - console.log(parser); - NotificationUtilities.simpleAlert(LocalizeText(`inventory.trading.openfail.${ parser.reason }`, [ 'otherusername' ], [ parser.otherUserName ]), null, null, null, LocalizeText('inventory.trading.openfail.title')); }, []); diff --git a/src/views/notification-center/common/NotificationUtilities.ts b/src/views/notification-center/common/NotificationUtilities.ts index 86c73b5e..d751a68f 100644 --- a/src/views/notification-center/common/NotificationUtilities.ts +++ b/src/views/notification-center/common/NotificationUtilities.ts @@ -73,8 +73,6 @@ export class NotificationUtilities if(configuration) for(const key in configuration) options.set(key, configuration[key]); - console.log(options); - const title = this.getNotificationPart(options, type, 'title', true); const message = this.getNotificationPart(options, type, 'message', true).replace(/\\r/g, '\r'); const linkTitle = this.getNotificationPart(options, type, 'linkTitle', false); diff --git a/src/views/room/widgets/chat-input/ChatInputView.tsx b/src/views/room/widgets/chat-input/ChatInputView.tsx index ed1391cc..063231f7 100644 --- a/src/views/room/widgets/chat-input/ChatInputView.tsx +++ b/src/views/room/widgets/chat-input/ChatInputView.tsx @@ -118,7 +118,6 @@ export const ChatInputView: FC<{}> = props => { if(needsChatStyleUpdate) { - console.log('send') GetSessionDataManager().sendChatStyleUpdate(chatStyleId); setNeedsChatStyleUpdate(false); diff --git a/src/views/room/widgets/furniture/gift-opening/FurnitureGiftOpeningView.tsx b/src/views/room/widgets/furniture/gift-opening/FurnitureGiftOpeningView.tsx index c76b9112..9442f123 100644 --- a/src/views/room/widgets/furniture/gift-opening/FurnitureGiftOpeningView.tsx +++ b/src/views/room/widgets/furniture/gift-opening/FurnitureGiftOpeningView.tsx @@ -1,5 +1,5 @@ import { RoomObjectCategory, RoomObjectOperationType } from '@nitrots/nitro-renderer'; -import { FC, useCallback, useEffect, useMemo, useState } from 'react'; +import { FC, useCallback, useMemo, useState } from 'react'; import { CreateLinkEvent, GetRoomEngine, GetSessionDataManager, LocalizeText, RoomWidgetPresentOpenMessage, RoomWidgetUpdatePresentDataEvent, RoomWidgetUpdateRoomObjectEvent } from '../../../../../api'; import { Button, Column, Flex, Text } from '../../../../../common'; import { ProductTypeEnum } from '../../../../../components/catalog/common/ProductTypeEnum'; @@ -33,11 +33,6 @@ export const FurnitureGiftOpeningView: FC<{}> = props => const [ openRequested, setOpenRequested ] = useState(false); const { roomSession = null, eventDispatcher = null, widgetHandler = null } = useRoomContext(); - useEffect(() => - { - console.log(imageUrl); - }, [ imageUrl ]); - const clearGift = useCallback(() => { if(!openRequested) setObjectId(-1); @@ -53,7 +48,6 @@ export const FurnitureGiftOpeningView: FC<{}> = props => const onRoomWidgetUpdatePresentDataEvent = useCallback((event: RoomWidgetUpdatePresentDataEvent) => { - console.log(event.imageUrl, event.type); switch(event.type) { case RoomWidgetUpdatePresentDataEvent.PACKAGEINFO: {