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