Do not display spaces bar if it is useless
This commit is contained in:
@@ -16,6 +16,9 @@ export function SpaceSelector(p: {
|
|||||||
[p.rooms]
|
[p.rooms]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// Do not display space bar if your is not member of any space
|
||||||
|
if (spaces.length === 0) return <></>;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div style={{ display: "flex", flexDirection: "column" }}>
|
<div style={{ display: "flex", flexDirection: "column" }}>
|
||||||
<SpaceButton
|
<SpaceButton
|
||||||
|
|||||||
Reference in New Issue
Block a user