Skip to content

Commit

Permalink
Merge pull request #1719 from Shopify/admin-banner-snippet
Browse files Browse the repository at this point in the history
Fix code snippet in banner and export Parapragh in ui-extension-react…
  • Loading branch information
Fionoble committed Feb 8, 2024
2 parents de34930 + 4dcef62 commit be9a9e0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/dirty-crabs-taste.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/ui-extensions-react': patch
---

Export Paragraph in ui-extensions-react/admin
2 changes: 2 additions & 0 deletions packages/ui-extensions-react/src/surfaces/admin/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ export {MoneyField} from './components/MoneyField/MoneyField';
export type {MoneyFieldProps} from './components/MoneyField/MoneyField';
export {NumberField} from './components/NumberField/NumberField';
export type {NumberFieldProps} from './components/NumberField/NumberField';
export {Paragraph} from './components/Paragraph/Paragraph';
export type {ParagraphProps} from './components/Paragraph/Paragraph';
export {PasswordField} from './components/PasswordField/PasswordField';
export type {PasswordFieldProps} from './components/PasswordField/PasswordField';
export {Pressable} from './components/Pressable/Pressable';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ import React from 'react';
import {
render,
Banner,
Paragraph,
} from '@shopify/ui-extensions-react/admin';

render('Playground', () => <App />);

function App() {
return (
<Banner title="Shipping rates changed" dismissible onDismiss={() => console.log('dismissed banner')}>
<p>Your store may be affected</p>
<Paragraph>Your store may be affected</Paragraph>
</Banner>
);
}

0 comments on commit be9a9e0

Please sign in to comment.