fix linter errors
This commit is contained in:
parent
23e8c110b2
commit
e8bfdf7043
@ -34,8 +34,10 @@ export const generateExportedMessages = (
|
|||||||
intl: IntlShape,
|
intl: IntlShape,
|
||||||
): string => {
|
): string => {
|
||||||
const welcomeMessage = htmlDecode(welcomeSettings.welcomeMsg);
|
const welcomeMessage = htmlDecode(welcomeSettings.welcomeMsg);
|
||||||
const welcomeMsgForModerators = welcomeSettings.welcomeMsgForModerators && htmlDecode(welcomeSettings.welcomeMsgForModerators);
|
const welcomeMsgForModerators = welcomeSettings.welcomeMsgForModerators
|
||||||
const systemMessages = `${welcomeMessage ? `system: ${welcomeMessage}` : ''}\n ${welcomeMsgForModerators ? `system: ${welcomeMsgForModerators}` : ''}\n`;
|
&& htmlDecode(welcomeSettings.welcomeMsgForModerators);
|
||||||
|
const systemMessages = `${welcomeMessage ? `system: ${welcomeMessage}` : ''}\n
|
||||||
|
${welcomeMsgForModerators ? `system: ${welcomeMsgForModerators}` : ''}\n`;
|
||||||
|
|
||||||
const text = messages.reduce((acc, message) => {
|
const text = messages.reduce((acc, message) => {
|
||||||
const date = new Date(message.createdAt);
|
const date = new Date(message.createdAt);
|
||||||
|
@ -345,7 +345,7 @@ const GuestUsersManagementPanel: React.FC<GuestUsersManagementPanelProps> = ({
|
|||||||
{
|
{
|
||||||
guestLobbyMessage && guestLobbyMessage !== ''
|
guestLobbyMessage && guestLobbyMessage !== ''
|
||||||
? <span dangerouslySetInnerHTML={{ __html: guestLobbyMessage }} />
|
? <span dangerouslySetInnerHTML={{ __html: guestLobbyMessage }} />
|
||||||
: intl.formatMessage(intlMessages.emptyMessage)
|
: intl.formatMessage(intlMessages.emptyMessage)
|
||||||
}
|
}
|
||||||
"
|
"
|
||||||
</i>
|
</i>
|
||||||
|
Loading…
Reference in New Issue
Block a user