(campaign: Campaign)
| 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 |
no test coverage detected