mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-23 14:40:50 +01:00
Update navigator-creator
This commit is contained in:
parent
13da75c105
commit
05580436eb
@ -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>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user