mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-26 23:50:52 +01:00
Fix cleanText in notification
This commit is contained in:
parent
f9c3b967de
commit
bdc912720c
@ -4,7 +4,7 @@ import { useBetween } from 'use-between';
|
|||||||
import { GetConfiguration, GetNitroInstance, GetRoomEngine, GetSessionDataManager, LocalizeBadgeName, LocalizeText, NotificationAlertItem, NotificationAlertType, NotificationBubbleItem, NotificationBubbleType, NotificationConfirmItem, PlaySound, ProductImageUtility, TradingNotificationType } from '../../api';
|
import { GetConfiguration, GetNitroInstance, GetRoomEngine, GetSessionDataManager, LocalizeBadgeName, LocalizeText, NotificationAlertItem, NotificationAlertType, NotificationBubbleItem, NotificationBubbleType, NotificationConfirmItem, PlaySound, ProductImageUtility, TradingNotificationType } from '../../api';
|
||||||
import { useMessageEvent } from '../events';
|
import { useMessageEvent } from '../events';
|
||||||
|
|
||||||
const cleanText = (text: string) => text.replace(/\\r/g, '\r');
|
const cleanText = (text: string) => (text && text.length) ? text.replace(/\\r/g, '\r') : '';
|
||||||
|
|
||||||
const getTimeZeroPadded = (time: number) =>
|
const getTimeZeroPadded = (time: number) =>
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user