Add collection detail page (#37897)

This commit is contained in:
diondiondion authored and GitHub committed 2026-02-18 13:19:39 +00:00
1 parent bd64ca2583
commit 488e0b2617
17 files changed
+459 -144

No files matched your search

@@ -65,6 +65,7 @@ import {
ListEdit,
ListMembers,
Collections,
CollectionDetail,
CollectionsEditor,
Blocks,
DomainBlocks,
@@ -269,12 +270,12 @@ class SwitchingColumnsArea extends PureComponent {
<WrappedRoute path='/mutes' component={Mutes} content={children} />
<WrappedRoute path='/lists' component={Lists} content={children} />
{areCollectionsEnabled() &&
<WrappedRoute path={['/collections/new', '/collections/:id/edit']} component={CollectionsEditor} content={children} />
[
<WrappedRoute path={['/collections/new', '/collections/:id/edit']} component={CollectionsEditor} content={children} />,
<WrappedRoute path='/collections/:id' component={CollectionDetail} content={children} />,
<WrappedRoute path='/collections' component={Collections} content={children} />
]
}
{areCollectionsEnabled() &&
<WrappedRoute path='/collections' component={Collections} content={children} />
}
<Route component={BundleColumnError} />
</WrappedSwitch>
</ColumnsAreaContainer>