hooks
4 years ago
store
4 years ago
utils
4 years ago
content.js
4 years ago
index.js
4 years ago
style.scss
4 years ago
index.js
18 lines
| 1 | import {__} from '@wordpress/i18n'; |
| 2 | |
| 3 | // Internal dependencies |
| 4 | import Content from './content'; |
| 5 | |
| 6 | import {fetchSubscriptionsDataFromAPI} from './utils'; |
| 7 | |
| 8 | export const registerRecurringDonationsTab = () => { |
| 9 | fetchSubscriptionsDataFromAPI(); |
| 10 | |
| 11 | window.giveDonorDashboard.utils.registerTab({ |
| 12 | label: __('Recurring Donations', 'give'), |
| 13 | icon: 'sync', |
| 14 | slug: 'recurring-donations', |
| 15 | content: Content, |
| 16 | }); |
| 17 | }; |
| 18 |