feat: Implement forum feed layout and refactor space navigation logic to support new routing structure
This commit is contained in:
@@ -41,8 +41,7 @@ import { getSpaceRoomPath } from '../../pages/pathUtils';
|
||||
import { StateEvent } from '../../../types/matrix/room';
|
||||
import { CanDropCallback, useDnDMonitor } from './DnD';
|
||||
import { ASCIILexicalTable, orderKeys } from '../../utils/ASCIILexicalTable';
|
||||
import { getStateEvent, shouldShowForumLobby } from '../../utils/room';
|
||||
import { ForumBoardDetail } from '../forum/ForumBoardDetail';
|
||||
import { getStateEvent } from '../../utils/room';
|
||||
import { useClosedLobbyCategoriesAtom } from '../../state/hooks/closedLobbyCategories';
|
||||
import {
|
||||
makeCinnySpacesContent,
|
||||
@@ -151,15 +150,7 @@ const useCanDropLobbyItem = (
|
||||
return canDrop;
|
||||
};
|
||||
|
||||
function ForumSpaceLobby() {
|
||||
return <ForumBoardDetail />;
|
||||
}
|
||||
|
||||
export function Lobby() {
|
||||
const space = useSpace();
|
||||
if (shouldShowForumLobby(space)) {
|
||||
return <ForumSpaceLobby />;
|
||||
}
|
||||
return <SpaceCardLobby />;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user