diff --git a/extensions/package-manager/js/src/admin/components/ConfigureJson.tsx b/extensions/package-manager/js/src/admin/components/ConfigureJson.tsx index 5c8ffc6b2..fc2408229 100644 --- a/extensions/package-manager/js/src/admin/components/ConfigureJson.tsx +++ b/extensions/package-manager/js/src/admin/components/ConfigureJson.tsx @@ -1,7 +1,8 @@ import app from 'flarum/admin/app'; import type Mithril from 'mithril'; import Component, { type ComponentAttrs } from 'flarum/common/Component'; -import { CommonSettingsItemOptions, type SettingsComponentOptions } from '@flarum/core/src/admin/components/AdminPage'; +import { type SettingsComponentOptions } from '@flarum/core/src/admin/components/AdminPage'; +import FormGroup, { type CommonFieldOptions } from 'flarum/common/components/FormGroup'; import AdminPage from 'flarum/admin/components/AdminPage'; import type ItemList from 'flarum/common/utils/ItemList'; import Stream from 'flarum/common/utils/Stream'; @@ -49,8 +50,8 @@ export default abstract class ConfigureJson Mithril.Children> { - return AdminPage.prototype.customSettingComponents(); + customSettingComponents(): ItemList<(attributes: CommonFieldOptions) => Mithril.Children> { + return FormGroup.prototype.customFieldComponents(); } setting(key: string) {