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') }
}