Skip to content

Commit

Permalink
feat: add discount details block
Browse files Browse the repository at this point in the history
  • Loading branch information
devisscher committed May 1, 2024
1 parent a7a39ba commit f3ef83c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,11 @@ You register targets in your \`shopify.extension.toml\` and inside the Javascrip
sectionContent:
'This page shows information about a single draft order. The `admin.draft-order-details.block.render` target is available on this page.',
},
{
title: 'Discount details',
sectionContent:
'This page shows information about a single discount. The `admin.discount-details.block.render` target is available on this page.',
},
{
title: 'Order details',
sectionContent:
Expand Down
10 changes: 10 additions & 0 deletions packages/ui-extensions/src/surfaces/admin/extension-targets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,16 @@ export interface ExtensionTargets {
AllComponents
>;

/**
* Renders an admin block in the discount details page.
*
* See the [list of available components](/docs/api/admin-extensions/components).
*/
'admin.discount-details.block.render': RenderExtension<
BlockExtensionApi<'admin.discount-details.block.render'>,
AllComponents
>;

/**
* Renders an admin block in the customer details page.
*
Expand Down

0 comments on commit f3ef83c

Please sign in to comment.