Skip to content

Commit

Permalink
fix: Expose prices resource within Price custom children props
Browse files Browse the repository at this point in the history
  • Loading branch information
acasazza committed Dec 2, 2021
1 parent 67b9387 commit 40f58b3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/Price.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ type PriceChildrenProps = FunctionChildren<
{
loading: boolean
loader: LoaderType
prices: PriceType[]
} & Omit<PriceProps, 'children'>
>

Expand Down Expand Up @@ -60,6 +61,7 @@ const Price: FunctionComponent<PriceProps> = (props) => {
const parentProps = {
loading,
loader,
prices: skuPrices,
...props,
}
const pricesComponent =
Expand Down

0 comments on commit 40f58b3

Please sign in to comment.