From 80224a258838f64e48e862347a8f52b30425e761 Mon Sep 17 00:00:00 2001 From: MyNameIsBatman Date: Mon, 6 Sep 2021 04:44:09 -0300 Subject: [PATCH] Fix Camera "Open Inventory" link --- src/views/camera/views/checkout/CameraWidgetCheckoutView.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/camera/views/checkout/CameraWidgetCheckoutView.tsx b/src/views/camera/views/checkout/CameraWidgetCheckoutView.tsx index d24f9787..bc05dc5d 100644 --- a/src/views/camera/views/checkout/CameraWidgetCheckoutView.tsx +++ b/src/views/camera/views/checkout/CameraWidgetCheckoutView.tsx @@ -1,7 +1,8 @@ import { CameraPublishStatusMessageEvent, CameraPurchaseOKMessageEvent, CameraStorageUrlMessageEvent, PublishPhotoMessageComposer, PurchasePhotoMessageComposer } from '@nitrots/nitro-renderer'; import { FC, useCallback, useEffect, useState } from 'react'; import { GetConfiguration, GetRoomEngine, LocalizeText } from '../../../../api'; -import { CreateMessageHook, SendMessageHook } from '../../../../hooks'; +import { InventoryEvent } from '../../../../events'; +import { CreateMessageHook, dispatchUiEvent, SendMessageHook } from '../../../../hooks'; import { NitroCardContentView, NitroCardHeaderView, NitroCardView } from '../../../../layout'; import { CurrencyIcon } from '../../../shared/currency-icon/CurrencyIcon'; import { CameraWidgetCheckoutViewProps } from './CameraWidgetCheckoutView.types'; @@ -108,7 +109,7 @@ export const CameraWidgetCheckoutView: FC = props { (picturesBought > 0) &&
{ LocalizeText('camera.purchase.count.info') } { picturesBought } - { LocalizeText('camera.open.inventory') } + dispatchUiEvent(new InventoryEvent(InventoryEvent.SHOW_INVENTORY)) }>{ LocalizeText('camera.open.inventory') }
}