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

Function onBoostAgain

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

Source from the content-addressed store, hash-verified

574 const isComplete = !infiniteScrollingProps.canFetchMore;
575
576 const onBoostAgain = (campaign: Campaign) => {
577 if (campaign.type === CampaignType.Post && campaign.post) {
578 openModal({
579 type: LazyModal.BoostPost,
580 props: {
581 post: campaign.post,
582 origin: Origin.AdsDashboard,
583 lastBoost: lastBoostOf(campaign),
584 },
585 });
586 return;
587 }
588
589 if (campaign.type === CampaignType.Squad && campaign.source) {
590 openModal({
591 type: LazyModal.BoostSquad,
592 props: { squad: campaign.source, origin: Origin.AdsDashboard },
593 });
594 }
595 };
596
597 const emptyState = (
598 <CharmEmptyState

Callers 1

BoostsTableFunction · 0.85

Calls 2

lastBoostOfFunction · 0.90
openModalFunction · 0.85

Tested by

no test coverage detected