Skip to content

Commit 5d7d544

Browse files
chore(plugin-multi-tenant): use beforeNav instead of beforeNavLinks for tenant selector (#15499)
Updates the tenant selector to use the new beforeNav component slot instead of beforeNavLinks, placing it before the entire navigation section for better UI placement in the future if a user enables sidebar tabs.
1 parent 57e759c commit 5d7d544

File tree

1 file changed

+4
-4
lines changed
  • packages/plugin-multi-tenant/src

1 file changed

+4
-4
lines changed

packages/plugin-multi-tenant/src/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export const multiTenantPlugin =
5252
if (!incomingConfig.admin?.components) {
5353
incomingConfig.admin.components = {
5454
actions: [],
55-
beforeNavLinks: [],
55+
beforeNav: [],
5656
providers: [],
5757
}
5858
}
@@ -62,8 +62,8 @@ export const multiTenantPlugin =
6262
if (!incomingConfig.admin.components?.actions) {
6363
incomingConfig.admin.components.actions = []
6464
}
65-
if (!incomingConfig.admin.components?.beforeNavLinks) {
66-
incomingConfig.admin.components.beforeNavLinks = []
65+
if (!incomingConfig.admin.components?.beforeNav) {
66+
incomingConfig.admin.components.beforeNav = []
6767
}
6868
if (!incomingConfig.collections) {
6969
incomingConfig.collections = []
@@ -482,7 +482,7 @@ export const multiTenantPlugin =
482482
/**
483483
* Add tenant selector to admin UI
484484
*/
485-
incomingConfig.admin.components.beforeNavLinks.push({
485+
incomingConfig.admin.components.beforeNav.push({
486486
clientProps: {
487487
enabledSlugs: [
488488
...collectionSlugs,

0 commit comments

Comments
 (0)