Skip to content

Commit

Permalink
docs(notification): update StaticNotification stories
Browse files Browse the repository at this point in the history
  • Loading branch information
tay1orjones committed Sep 6, 2024
1 parent 4600fa5 commit fc2579c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# StaticNotification has been renamed to Callout

Run the following codemod to automatically update usages in your project:

```
npx @carbon/upgrade migrate rename-staticnotification-to-callout --write
```
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
*/

import React from 'react';
import { StaticNotification } from '../../Notification';
import { Link } from '../../Link';
import { CodeSnippet } from '../../CodeSnippet';
import mdx from './StaticNotification.mdx';

export default {
Expand All @@ -16,3 +19,19 @@ export default {
},
},
};

export const Default = () => (
<>
<StaticNotification title="StaticNotification has been renamed to Callout" />

<div style={{ marginLeft: '.5rem', marginTop: '2rem' }}>
<p style={{ marginBottom: '1rem' }}>
Run the following codemod to automatically update usages in your
project:
</p>
<CodeSnippet type="single" feedback="Copied to clipboard">
npx @carbon/upgrade migrate rename-staticnotification-to-callout --write
</CodeSnippet>
</div>
</>
);

0 comments on commit fc2579c

Please sign in to comment.