diff --git a/.changeset/nasty-planets-tap.md b/.changeset/nasty-planets-tap.md new file mode 100644 index 0000000000..0dbd3742cc --- /dev/null +++ b/.changeset/nasty-planets-tap.md @@ -0,0 +1,5 @@ +--- +'@leafygreen-ui/code': patch +--- + +Remove mentions of props removed in v18 diff --git a/packages/code/src/Code.stories.tsx b/packages/code/src/Code.stories.tsx index 5a55a5cd95..09d8232dec 100644 --- a/packages/code/src/Code.stories.tsx +++ b/packages/code/src/Code.stories.tsx @@ -109,7 +109,6 @@ const meta: StoryMetaType = { }, argTypes: { isLoading: { control: 'boolean' }, - copyable: { control: 'boolean' }, expandable: { control: 'boolean' }, showLineNumbers: { control: 'boolean' }, highlightLines: { control: 'boolean' }, @@ -231,7 +230,6 @@ WithLanguageSwitcher.parameters = { exclude: [ 'highlightLines', 'copyButtonAppearance', - 'copyable', 'children', 'expandable', ], diff --git a/packages/code/src/Code/Code.tsx b/packages/code/src/Code/Code.tsx index ddea97896f..62c4b3860e 100644 --- a/packages/code/src/Code/Code.tsx +++ b/packages/code/src/Code/Code.tsx @@ -67,25 +67,6 @@ function Code({ const showPanel = !!panel; - if ( - // @ts-expect-error detecting deprecated props - rest.copyable || - // @ts-expect-error detecting deprecated props - rest.showCustomActionButtons || - // @ts-expect-error detecting deprecated props - rest.languageOptions || - // @ts-expect-error detecting deprecated props - rest.customActionButtons || - // @ts-expect-error detecting deprecated props - rest.chromeTitle || - // @ts-expect-error detecting deprecated props - rest.onChange - ) { - console.warn( - 'The following props are deprecated and have been removed: copyable, showCustomActionButtons, languageOptions, customActionButtons, chromeTitle, onChange. Please use the Panel component instead.', - ); - } - useIsomorphicLayoutEffect(() => { const scrollableElement = scrollableElementRef.current;