Split collection editor into dedicated routes (#37731)

This commit is contained in:
diondiondion
2026-02-04 18:45:41 +01:00
committed by GitHub
parent 0d6fc8026d
commit 8ebe2e673e
13 changed files with 699 additions and 283 deletions

View File

@@ -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} />