mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
Add data store boilerplate
This commit is contained in:
parent
442a33778f
commit
0e89cde688
12 changed files with 411 additions and 2 deletions
|
@ -5,8 +5,17 @@ import * as Payment from './payment';
|
|||
import * as Settings from './settings';
|
||||
import * as Styling from './styling';
|
||||
import * as Todos from './todos';
|
||||
import * as PayLaterMessaging from './pay-later-messaging';
|
||||
|
||||
const stores = [ Onboarding, Common, Payment, Settings, Styling, Todos ];
|
||||
const stores = [
|
||||
Onboarding,
|
||||
Common,
|
||||
Payment,
|
||||
Settings,
|
||||
Styling,
|
||||
Todos,
|
||||
PayLaterMessaging,
|
||||
];
|
||||
|
||||
stores.forEach( ( store ) => {
|
||||
try {
|
||||
|
@ -30,6 +39,7 @@ export const PaymentHooks = Payment.hooks;
|
|||
export const SettingsHooks = Settings.hooks;
|
||||
export const StylingHooks = Styling.hooks;
|
||||
export const TodosHooks = Todos.hooks;
|
||||
export const PayLaterMessagingHooks = PayLaterMessaging.hooks;
|
||||
|
||||
export const OnboardingStoreName = Onboarding.STORE_NAME;
|
||||
export const CommonStoreName = Common.STORE_NAME;
|
||||
|
@ -37,6 +47,7 @@ export const PaymentStoreName = Payment.STORE_NAME;
|
|||
export const SettingsStoreName = Settings.STORE_NAME;
|
||||
export const StylingStoreName = Styling.STORE_NAME;
|
||||
export const TodosStoreName = Todos.STORE_NAME;
|
||||
export const PayLaterMessagingStoreName = PayLaterMessaging.STORE_NAME;
|
||||
|
||||
export * from './configuration';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue