Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(HTTPErrors): include codemod run command #6563

Merged
merged 9 commits into from
Dec 11, 2024
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
Loading