Split collection editor into dedicated routes (#37731)

This commit is contained in:
diondiondion authored and GitHub committed 2026-02-04 17:45:41 +00:00
1 parent 0d6fc8026d
commit 8ebe2e673e
13 files changed
+699 -283

No files matched your search

@@ -231,10 +231,7 @@ class SwitchingColumnsArea extends PureComponent {
<WrappedRoute path='/mutes' component={Mutes} content={children} />
<WrappedRoute path='/lists' component={Lists} content={children} />
{areCollectionsEnabled() &&
<WrappedRoute path='/collections/new' component={CollectionsEditor} content={children} />
}
{areCollectionsEnabled() &&
<WrappedRoute path='/collections/:id/edit' component={CollectionsEditor} content={children} />
<WrappedRoute path={['/collections/new', '/collections/:id/edit']} component={CollectionsEditor} content={children} />
}
{areCollectionsEnabled() &&
<WrappedRoute path='/collections' component={Collections} content={children} />