mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-22 22:30:52 +01:00
Add badge.descriptions.enabled
This commit is contained in:
parent
826fe4ac26
commit
c853d5a415
@ -13,6 +13,7 @@
|
||||
"user.badges.max.slots": 5,
|
||||
"camera.publish.disabled": false,
|
||||
"hc.disabled": false,
|
||||
"badge.descriptions.enabled": true,
|
||||
"hotelview": {
|
||||
"show.avatar": true,
|
||||
"widgets": {
|
||||
|
@ -1,6 +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 { GetConfiguration, GetSessionDataManager, LocalizeBadgeDescription, LocalizeBadgeName, LocalizeText } from '../../api';
|
||||
import { Base, BaseProps } from '../Base';
|
||||
|
||||
export interface LayoutBadgeImageViewProps extends BaseProps<HTMLDivElement>
|
||||
@ -89,6 +89,8 @@ export const LayoutBadgeImageView: FC<LayoutBadgeImageViewProps> = props =>
|
||||
{
|
||||
const { title = null, description = null } = props;
|
||||
|
||||
if(!GetConfiguration('badge.descriptions.enabled', true)) return null;
|
||||
|
||||
return (
|
||||
<Base className="badge-information text-black py-1 px-2 small">
|
||||
<div className="fw-bold mb-1">{ title }</div>
|
||||
|
Loading…
Reference in New Issue
Block a user