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