Skip to content

Commit

Permalink
chore(ui): add deprecation warnings to content wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
guoda-puidokaite committed Nov 27, 2024
1 parent 707ca0a commit 9448df3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
import React from "react"
import PropTypes from "prop-types"

import { withDeprecationWarning } from "../../deprecated_js/withDeprecationWarning/withDeprecationWarning.component"

const containerStyles = `
jn-relative
jn-grow
Expand All @@ -30,3 +32,8 @@ ContentAreaWrapper.propTypes = {
className: PropTypes.string,
children: PropTypes.node,
}

export default withDeprecationWarning(
ContentAreaWrapper,
"ContentAreaWrapper is deprecated and will be removed in future versions."
)
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { ContentAreaToolbar } from "../../components/ContentAreaToolbar/ContentA
import { Button } from "../Button/index.js"

export default {
title: "Internal/ContentAreaWrapper",
title: "Deprecated/ContentAreaWrapper",
component: ContentAreaWrapper,
argTypes: {
children: {
Expand All @@ -35,7 +35,7 @@ export const Basic = {
parameters: {
docs: {
description: {
story: "OBSOLETE: Will be deleted!",
story: "Deprecated: Will be deleted!",
},
},
},
Expand Down

0 comments on commit 9448df3

Please sign in to comment.