Skip to content

Commit

Permalink
feat: add discount details block (#1920)
Browse files Browse the repository at this point in the history
  • Loading branch information
devisscher authored Oct 8, 2024
1 parent 48d7dd0 commit 318b8ed
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,12 @@ You register targets in your \`shopify.extension.toml\` and inside the Javascrip
'This page shows information about a single gift card. The `admin.gift-card-details.block.render` target is available on this page.',
image: 'admin.gift-card-details.block.render.png',
},
{
title: 'Discount details function settings',
image: 'admin.discount-details.function-settings-render.png',
description:
'This page shows information about a single discount. The `admin.discount-details.function-settings.render` target is available on this page.',
},
{
title: 'Order details',
description:
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 @@ -88,6 +88,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.function-settings.render': RenderExtension<
BlockExtensionApi<'admin.discount-details.function-settings.render'>,
AllComponents
>;

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

0 comments on commit 318b8ed

Please sign in to comment.