-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8a933f1
commit 0a88421
Showing
3 changed files
with
46 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* globals newspackAudienceDonations */ | ||
/** | ||
* WordPress dependencies. | ||
*/ | ||
import { __ } from '@wordpress/i18n'; | ||
|
||
/** | ||
* Internal dependencies. | ||
*/ | ||
import { Button, Card } from '../../../../../components/src'; | ||
import WizardsTab from '../../../../wizards-tab'; | ||
|
||
/** | ||
* Donation Revenues screen. | ||
*/ | ||
const DonationsRevenue = () => ( | ||
<WizardsTab title={ __( 'Revenue', 'newspack-plugin' ) }> | ||
<div className="newspack-campaigns-wizard-analytics__wrapper"> | ||
<Card isNarrow> | ||
<h2>{ __( 'View Donation Revenue in WooCommerce', 'newspack-plugin' ) }</h2> | ||
<p> | ||
{ | ||
__( | ||
'You can view revenue from donations and subscriptions in the WooCommerce plugin.', | ||
'newspack-plugin' | ||
) | ||
} | ||
</p> | ||
<Card buttonsCard noBorder> | ||
<Button isPrimary href={ newspackAudienceDonations.revenue_link }> | ||
{ __( 'See Revenue Data', 'newspack-plugin' ) } | ||
</Button> | ||
</Card> | ||
</Card> | ||
</div> | ||
</WizardsTab> | ||
); | ||
|
||
export default DonationsRevenue; |