From f23099c2fa1f84ce67b7ac42de22f2361d3a963a Mon Sep 17 00:00:00 2001 From: Bill Date: Sat, 15 Jan 2022 03:37:48 -0500 Subject: [PATCH] Navigator updates --- .../views/creator/NavigatorRoomCreatorView.tsx | 15 +++++++-------- .../views/room-info/NavigatorRoomInfoView.tsx | 2 +- .../user-profile-icon/UserProfileIconView.tsx | 2 +- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/src/components/navigator/views/creator/NavigatorRoomCreatorView.tsx b/src/components/navigator/views/creator/NavigatorRoomCreatorView.tsx index a71fca18..7efe57b7 100644 --- a/src/components/navigator/views/creator/NavigatorRoomCreatorView.tsx +++ b/src/components/navigator/views/creator/NavigatorRoomCreatorView.tsx @@ -2,6 +2,7 @@ import { HabboClubLevelEnum, RoomCreateComposer } from '@nitrots/nitro-renderer'; import { FC, useEffect, useState } from 'react'; import { GetConfiguration, GetSessionDataManager, LocalizeText } from '../../../../api'; +import { Button } from '../../../../common/Button'; import { Column } from '../../../../common/Column'; import { Flex } from '../../../../common/Flex'; import { Grid } from '../../../../common/Grid'; @@ -38,8 +39,6 @@ export const NavigatorRoomCreatorView: FC<{}> = props => const createRoom = () => { - if(!name || name.length < 3) return; - SendMessageHook(new RoomCreateComposer(name, description, 'model_' + selectedModelName, Number(category), Number(visitorsCount), tradesSetting)); } @@ -69,11 +68,11 @@ export const NavigatorRoomCreatorView: FC<{}> = props => { LocalizeText('navigator.createroom.roomnameinfo') } - setName(e.target.value) } /> + setName(event.target.value) } /> { LocalizeText('navigator.category') } - setCategory(Number(event.target.value)) }> { categories && categories.map(category => { return @@ -82,7 +81,7 @@ export const NavigatorRoomCreatorView: FC<{}> = props => { LocalizeText('navigator.maxvisitors') } - setVisitorsCount(Number(event.target.value)) }> { maxVisitorsList && maxVisitorsList.map(value => { return @@ -91,7 +90,7 @@ export const NavigatorRoomCreatorView: FC<{}> = props => { LocalizeText('navigator.tradesettings') } - setTradesSetting(Number(event.target.value)) }> @@ -100,7 +99,7 @@ export const NavigatorRoomCreatorView: FC<{}> = props => { LocalizeText('navigator.createroom.roomdescinfo') } - setDescription(e.target.value) } /> + setDescription(event.target.value) } /> { @@ -116,7 +115,7 @@ export const NavigatorRoomCreatorView: FC<{}> = props => }) } - + ); } diff --git a/src/components/navigator/views/room-info/NavigatorRoomInfoView.tsx b/src/components/navigator/views/room-info/NavigatorRoomInfoView.tsx index 9c975a79..d97cd1ba 100644 --- a/src/components/navigator/views/room-info/NavigatorRoomInfoView.tsx +++ b/src/components/navigator/views/room-info/NavigatorRoomInfoView.tsx @@ -143,7 +143,7 @@ export const NavigatorRoomInfoView: FC = props => { roomInfoData.enteredGuestRoom.showOwner && { LocalizeText('navigator.roomownercaption') } - + { roomInfoData.enteredGuestRoom.ownerName } diff --git a/src/layout/user-profile-icon/UserProfileIconView.tsx b/src/layout/user-profile-icon/UserProfileIconView.tsx index 29f9a21e..4cfe8076 100644 --- a/src/layout/user-profile-icon/UserProfileIconView.tsx +++ b/src/layout/user-profile-icon/UserProfileIconView.tsx @@ -22,7 +22,7 @@ export const UserProfileIconView: FC = props => }, [ classNames ]); return ( - GetUserProfile(userId) } { ... rest }> + GetUserProfile(userId) } { ... rest }> { children } );