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

Function onBoostAgain

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

Source from the content-addressed store, hash-verified

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

Callers 1

BoostsTableFunction · 0.85

Calls 2

lastBoostOfFunction · 0.90
openModalFunction · 0.85

Tested by

no test coverage detected