This commit is contained in:
Bill 2022-02-23 00:37:30 -05:00
commit 91c8ac6bd9

View File

@ -65,12 +65,13 @@ export const NavigatorRoomCreatorView: FC<{}> = props =>
return (
<Column overflow="hidden">
<Grid fullHeight={ false }>
<Column size={ 6 } gap={ 1 }>
<Grid>
<Column size={ 6 }>
<Column gap={ 1 }>
<Text>{ LocalizeText('navigator.createroom.roomnameinfo') }</Text>
<input type="text" className="form-control form-control-sm" onChange={ event => setName(event.target.value) } />
</Column>
<Column size={ 6 } gap={ 1 }>
<Column gap={ 1 }>
<Text>{ LocalizeText('navigator.category') }</Text>
<select className="form-select form-select-sm" onChange={ event => setCategory(Number(event.target.value)) }>
{ categories && categories.map(category =>
@ -79,7 +80,7 @@ export const NavigatorRoomCreatorView: FC<{}> = props =>
}) }
</select>
</Column>
<Column size={ 6 } gap={ 1 }>
<Column gap={ 1 }>
<Text>{ LocalizeText('navigator.maxvisitors') }</Text>
<select className="form-select form-select-sm" onChange={ event => setVisitorsCount(Number(event.target.value)) }>
{ maxVisitorsList && maxVisitorsList.map(value =>
@ -88,7 +89,7 @@ export const NavigatorRoomCreatorView: FC<{}> = props =>
}) }
</select>
</Column>
<Column size={ 6 } gap={ 1 }>
<Column gap={ 1 }>
<Text>{ LocalizeText('navigator.tradesettings') }</Text>
<select className="form-select form-select-sm" onChange={ event => setTradesSetting(Number(event.target.value)) }>
<option value="0">{ LocalizeText('navigator.roomsettings.trade_not_allowed') }</option>
@ -96,12 +97,12 @@ export const NavigatorRoomCreatorView: FC<{}> = props =>
<option value="2">{ LocalizeText('navigator.roomsettings.trade_allowed') }</option>
</select>
</Column>
</Grid>
<Column gap={ 1 }>
<Text>{ LocalizeText('navigator.createroom.roomdescinfo') }</Text>
<input type="text" className="form-control form-control-sm" onChange={ event => setDescription(event.target.value) } />
</Column>
<Flex overflow="auto" gap={ 1 }>
</Column>
<Column size={ 6 } gap={ 1 } overflow="auto">
{
RoomModels.map(model =>
{
@ -114,8 +115,11 @@ export const NavigatorRoomCreatorView: FC<{}> = props =>
</LayoutGridItem>);
})
}
</Flex>
</Column>
<Column size={ 12 }>
<Button variant="success" onClick={ createRoom } disabled={ (!name || (name.length < 3)) }>{ LocalizeText('navigator.createroom.create') }</Button>
</Column>
</Grid>
</Column>
);
}