Add a check for space to hide option in space creation

This commit is contained in:
GigiaJ 2025-04-21 21:10:27 -04:00
parent 5ae806444e
commit 02cb7ea9a7

View file

@ -220,6 +220,7 @@ function CreateRoomContent({ isSpace, parentId, onRequestClose }) {
<Text variant="b3">Selecting Admin sets 100 power level whereas Founder sets 101.</Text>
}
/>
{!isSpace && (
<SettingTile
title="Room type"
options={
@ -231,6 +232,7 @@ function CreateRoomContent({ isSpace, parentId, onRequestClose }) {
}
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 />