MCPcopy Create free account
hub / github.com/dailydotdev/apps / onBoostAgain

Function onBoostAgain

packages/shared/src/features/boost/BoostManager.tsx:568–587  ·  view source on GitHub ↗
(campaign: Campaign)

Source from the content-addressed store, hash-verified

566 const isComplete = !infiniteScrollingProps.canFetchMore;
567
568 const onBoostAgain = (campaign: Campaign) => {
569 if (campaign.type === CampaignType.Post && campaign.post) {
570 openModal({
571 type: LazyModal.BoostPost,
572 props: {
573 post: campaign.post,
574 origin: Origin.AdsDashboard,
575 lastBoost: lastBoostOf(campaign),
576 },
577 });
578 return;
579 }
580
581 if (campaign.type === CampaignType.Squad && campaign.source) {
582 openModal({
583 type: LazyModal.BoostSquad,
584 props: { squad: campaign.source, origin: Origin.AdsDashboard },
585 });
586 }
587 };
588
589 const emptyState = (
590 <CharmEmptyState

Callers 1

BoostsTableFunction · 0.85

Calls 2

lastBoostOfFunction · 0.90
openModalFunction · 0.85

Tested by

no test coverage detected