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