From 0a28e69e19eff291a4339bd44c4152b460af0e23 Mon Sep 17 00:00:00 2001 From: oobjectt Date: Tue, 13 Dec 2022 21:52:40 +0100 Subject: [PATCH] Fixed required changes --- src/api/navigator/RoomSettingsErrorType.ts | 10 ---------- src/api/navigator/index.ts | 1 - .../NavigatorRoomSettingsBasicTabView.tsx | 11 ++++++----- 3 files changed, 6 insertions(+), 16 deletions(-) delete mode 100644 src/api/navigator/RoomSettingsErrorType.ts diff --git a/src/api/navigator/RoomSettingsErrorType.ts b/src/api/navigator/RoomSettingsErrorType.ts deleted file mode 100644 index 8fbe90f5..00000000 --- a/src/api/navigator/RoomSettingsErrorType.ts +++ /dev/null @@ -1,10 +0,0 @@ -export class RoomSettingsErrorType -{ - public static readonly PASSWORD_REQUIRED = 5; - public static readonly ROOM_NAME_MISSING = 7; - public static readonly ROOM_NAME_BADWORDS = 8; - public static readonly ROOM_DESCRIPTION_BADWORDS = 10; - public static readonly ROOM_TAGS_BADWWORDS = 11; - public static readonly RESTRICTED_TAGS = 12; - public static readonly TAGS_TOO_LONG = 13; -} diff --git a/src/api/navigator/index.ts b/src/api/navigator/index.ts index 08e40ccc..bceb33e4 100644 --- a/src/api/navigator/index.ts +++ b/src/api/navigator/index.ts @@ -7,7 +7,6 @@ export * from './IRoomModel'; export * from './IRoomModerationSettings'; export * from './NavigatorSearchResultViewDisplayMode'; export * from './RoomInfoData'; -export * from './RoomSettingsErrorType'; export * from './RoomSettingsUtils'; export * from './SearchFilterOptions'; export * from './TryVisitRoom'; diff --git a/src/components/navigator/views/room-settings/NavigatorRoomSettingsBasicTabView.tsx b/src/components/navigator/views/room-settings/NavigatorRoomSettingsBasicTabView.tsx index 247d82de..ce0d6f83 100644 --- a/src/components/navigator/views/room-settings/NavigatorRoomSettingsBasicTabView.tsx +++ b/src/components/navigator/views/room-settings/NavigatorRoomSettingsBasicTabView.tsx @@ -1,7 +1,7 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; -import { RoomDeleteComposer, RoomSettingsSaveErrorEvent } from '@nitrots/nitro-renderer'; +import { RoomDeleteComposer, RoomSettingsSaveErrorEvent, RoomSettingsSaveErrorParser } from '@nitrots/nitro-renderer'; import { FC, useEffect, useState } from 'react'; -import { CreateLinkEvent, GetMaxVisitorsList, IRoomData, LocalizeText, RoomSettingsErrorType, SendMessageComposer } from '../../../../api'; +import { CreateLinkEvent, GetMaxVisitorsList, IRoomData, LocalizeText, SendMessageComposer } from '../../../../api'; import { Base, Column, Flex, Text } from '../../../../common'; import { useMessageEvent, useNavigator, useNotification } from '../../../../hooks'; @@ -37,9 +37,10 @@ export const NavigatorRoomSettingsBasicTabView: FC