Skip to content

Commit

Permalink
chore(HTTPErrors): include codemod run command (#6563)
Browse files Browse the repository at this point in the history
* refactor(useFocus): refactor repeated useEffect code

* chore(HTTPError): include codemod run command
  • Loading branch information
makafsal authored Dec 11, 2024
1 parent dd60a2e commit 13e845c
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,11 @@ const Template = (args) => {
version. Please migrate to{' '}
<a href="https://ibm-products.carbondesignsystem.com/?path=/docs/ibm-products-patterns-full-page-error-fullpageerror--docs">
FullPageError
</a>
.
</a>{' '}
by running{' '}
<code>
npx @carbon/upgrade migrate ibm-products-update-http-errors --write
</code>
</div>
}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export let HTTPError403 = React.forwardRef<HTMLDivElement, HTTPError403Props>(
/**@ts-ignore*/
HTTPError403.deprecated = {
level: 'warn',
details: `Please replace ${componentName} with FullPageError`,
details: `${componentName} is deprecated. Please migrate to FullPageError by running npx @carbon/upgrade migrate ibm-products-update-http-errors --write`,
};

// Return a placeholder if not released and not enabled by feature flag
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,11 @@ const Template = (args) => {
version. Please migrate to{' '}
<a href="https://ibm-products.carbondesignsystem.com/?path=/docs/ibm-products-patterns-full-page-error-fullpageerror--docs">
FullPageError
</a>
.
</a>{' '}
by running{' '}
<code>
npx @carbon/upgrade migrate ibm-products-update-http-errors --write
</code>
</div>
}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export let HTTPError404 = React.forwardRef<HTMLDivElement, HTTPError404Props>(
/**@ts-ignore*/
HTTPError404.deprecated = {
level: 'warn',
details: `Please replace ${componentName} with FullPageError`,
details: `${componentName} is deprecated. Please migrate to FullPageError by running npx @carbon/upgrade migrate ibm-products-update-http-errors --write`,
};

// Return a placeholder if not released and not enabled by feature flag
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,11 @@ const Template = (args) => {
version. Please migrate to{' '}
<a href="https://ibm-products.carbondesignsystem.com/?path=/docs/ibm-products-patterns-full-page-error-fullpageerror--docs">
FullPageError
</a>
.
</a>{' '}
by running{' '}
<code>
npx @carbon/upgrade migrate ibm-products-update-http-errors --write
</code>
</div>
}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export let HTTPErrorOther = React.forwardRef(
/**@ts-ignore*/
HTTPErrorOther.deprecated = {
level: 'warn',
details: `Please replace ${componentName} with FullPageError`,
details: `${componentName} is deprecated. Please migrate to FullPageError by running npx @carbon/upgrade migrate ibm-products-update-http-errors --write`,
};

// Return a placeholder if not released and not enabled by feature flag
Expand Down

0 comments on commit 13e845c

Please sign in to comment.