forked from github/cinny
Add a check for space to hide option in space creation
This commit is contained in:
@@ -220,17 +220,19 @@ function CreateRoomContent({ isSpace, parentId, onRequestClose }) {
|
|||||||
<Text variant="b3">Selecting Admin sets 100 power level whereas Founder sets 101.</Text>
|
<Text variant="b3">Selecting Admin sets 100 power level whereas Founder sets 101.</Text>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
<SettingTile
|
{!isSpace && (
|
||||||
title="Room type"
|
<SettingTile
|
||||||
options={
|
title="Room type"
|
||||||
<SegmentControl
|
options={
|
||||||
selected={roomType}
|
<SegmentControl
|
||||||
segments={[{ text: 'Text' }, { text: 'Call' }]}
|
selected={roomType}
|
||||||
onSelect={setRoomType}
|
segments={[{ text: 'Text' }, { text: 'Call' }]}
|
||||||
/>
|
onSelect={setRoomType}
|
||||||
}
|
/>
|
||||||
content={<Text variant="b3">Select the type of room.</Text>}
|
}
|
||||||
/>
|
content={<Text variant="b3">Select the type of room.</Text>}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
<Input name="topic" minHeight={174} resizable label="Topic (optional)" />
|
<Input name="topic" minHeight={174} resizable label="Topic (optional)" />
|
||||||
<div className="create-room__name-wrapper">
|
<div className="create-room__name-wrapper">
|
||||||
<Input name="name" label={`${isSpace ? 'Space' : 'Room'} name`} required />
|
<Input name="name" label={`${isSpace ? 'Space' : 'Room'} name`} required />
|
||||||
|
|||||||
Reference in New Issue
Block a user