mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-06 23:30:28 +03:00
Add a check for space to hide option in space creation
This commit is contained in:
parent
5ae806444e
commit
02cb7ea9a7
1 changed files with 13 additions and 11 deletions
|
|
@ -220,17 +220,19 @@ function CreateRoomContent({ isSpace, parentId, onRequestClose }) {
|
|||
<Text variant="b3">Selecting Admin sets 100 power level whereas Founder sets 101.</Text>
|
||||
}
|
||||
/>
|
||||
<SettingTile
|
||||
title="Room type"
|
||||
options={
|
||||
<SegmentControl
|
||||
selected={roomType}
|
||||
segments={[{ text: 'Text' }, { text: 'Call' }]}
|
||||
onSelect={setRoomType}
|
||||
/>
|
||||
}
|
||||
content={<Text variant="b3">Select the type of room.</Text>}
|
||||
/>
|
||||
{!isSpace && (
|
||||
<SettingTile
|
||||
title="Room type"
|
||||
options={
|
||||
<SegmentControl
|
||||
selected={roomType}
|
||||
segments={[{ text: 'Text' }, { text: 'Call' }]}
|
||||
onSelect={setRoomType}
|
||||
/>
|
||||
}
|
||||
content={<Text variant="b3">Select the type of room.</Text>}
|
||||
/>
|
||||
)}
|
||||
<Input name="topic" minHeight={174} resizable label="Topic (optional)" />
|
||||
<div className="create-room__name-wrapper">
|
||||
<Input name="name" label={`${isSpace ? 'Space' : 'Room'} name`} required />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue