diff --git a/packages/core/client/src/pm/PluginManagerLink.tsx b/packages/core/client/src/pm/PluginManagerLink.tsx index 47bb7deec..60b0dd529 100644 --- a/packages/core/client/src/pm/PluginManagerLink.tsx +++ b/packages/core/client/src/pm/PluginManagerLink.tsx @@ -46,31 +46,22 @@ export const SettingsCenterDropdown = () => { - {bookmarkTabs.map((tab) => { - return ( - { - history.push('/admin/settings/' + tab.path); - }} - key={tab.path} - > - {compile(tab.title)} - - ); - })} - - { - history.push('/admin/settings'); - }} - key="/admin/settings" - > - {t('All plugin settings')} - - - } + menu={{ + items: [ + ...bookmarkTabs.map((tab) => ({ + key: `/admin/settings/${tab.path}`, + label: compile(tab.title), + })), + { type: 'divider' }, + { + key: '/admin/settings', + label: t('All plugin settings'), + }, + ], + onClick({ key }) { + history.push(key); + }, + }} >