mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-05 06:50:28 +03:00
Show categorized subspaces
Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
parent
699f67aa75
commit
a05b96e9a0
6 changed files with 59 additions and 76 deletions
|
|
@ -3,10 +3,9 @@ import React, { useEffect } from 'react';
|
|||
import initMatrix from '../../../client/initMatrix';
|
||||
import cons from '../../../client/state/cons';
|
||||
import navigation from '../../../client/state/navigation';
|
||||
import { selectRoom } from '../../../client/action/navigation';
|
||||
import Postie from '../../../util/Postie';
|
||||
|
||||
import Selector from './Selector';
|
||||
import RoomsCategory from './RoomsCategory';
|
||||
|
||||
import { AtoZ } from './common';
|
||||
|
||||
|
|
@ -40,14 +39,7 @@ function Directs() {
|
|||
};
|
||||
}, []);
|
||||
|
||||
return directIds.map((id) => (
|
||||
<Selector
|
||||
key={id}
|
||||
roomId={id}
|
||||
drawerPostie={drawerPostie}
|
||||
onClick={() => selectRoom(id)}
|
||||
/>
|
||||
));
|
||||
return <RoomsCategory name="People" hideHeader roomIds={directIds} drawerPostie={drawerPostie} />;
|
||||
}
|
||||
|
||||
export default Directs;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue