diff --git a/code/lib/api/src/modules/addons.ts b/code/lib/api/src/modules/addons.ts index 5fb8deb9532..46cae050ca3 100644 --- a/code/lib/api/src/modules/addons.ts +++ b/code/lib/api/src/modules/addons.ts @@ -1,20 +1,9 @@ import type { ReactElement } from 'react'; import type { RenderData } from '@storybook/router'; -import deprecate from 'util-deprecate'; -import { dedent } from 'ts-dedent'; import { ModuleFn } from '../index'; import { Options } from '../store'; -const warnDisabledDeprecated = deprecate( - () => {}, - dedent` - Use 'parameters.key.disable' instead of 'parameters.key.disabled'. - - https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-disabled-parameter - ` -); - export type ViewMode = 'story' | 'info' | 'settings' | 'page' | undefined | string; export enum types { @@ -113,15 +102,7 @@ export const init: ModuleFn = ({ provider, store, fullAPI }) = const filteredPanels: Collection = {}; Object.entries(allPanels).forEach(([id, panel]) => { const { paramKey } = panel; - if ( - paramKey && - parameters && - parameters[paramKey] && - (parameters[paramKey].disabled || parameters[paramKey].disable) - ) { - if (parameters[paramKey].disabled) { - warnDisabledDeprecated(); - } + if (paramKey && parameters && parameters[paramKey] && parameters[paramKey].disable) { return; } filteredPanels[id] = panel;