Skip to content

Commit

Permalink
Merge pull request #105 from gravity-ui/add-hook-export
Browse files Browse the repository at this point in the history
fix(promo-manager): add usePromo hook export
  • Loading branch information
vanilla-wave authored Sep 3, 2024
2 parents cc30bdc + 9d2fd5f commit 34aba13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/promo-manager/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ const getDebug = () => {
export function createPromoManager(options: PromoOptions) {
const controller = new Controller({...options, debugMode: getDebug()});

const {usePromoManager, useActivePromo} = getHooks(controller);
const {usePromoManager, useActivePromo, usePromo} = getHooks(controller);

return {
usePromoManager,
useActivePromo,
usePromo,
controller,
};
}

0 comments on commit 34aba13

Please sign in to comment.