-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Data Stores: Refactor partner portal credit card store to cre…
- Loading branch information
Showing
7 changed files
with
28 additions
and
20 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
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 |
---|---|---|
@@ -1,12 +1,14 @@ | ||
import { createReduxStore, register } from '@wordpress/data'; | ||
import { registerStore } from '@wordpress/data'; | ||
import * as actions from 'calypso/state/partner-portal/credit-card-form/actions'; | ||
import reducer from 'calypso/state/partner-portal/credit-card-form/reducer'; | ||
import * as selectors from 'calypso/state/partner-portal/credit-card-form/selectors'; | ||
|
||
export const creditCardStore = createReduxStore( 'credit-card', { | ||
reducer, | ||
actions, | ||
selectors, | ||
} ); | ||
export function createStoredCreditCardPaymentMethodStore(): Record< string, unknown > { | ||
const store = registerStore( 'credit-card', { | ||
reducer, | ||
actions, | ||
selectors, | ||
} ); | ||
|
||
register( creditCardStore ); | ||
return { ...store, actions, selectors }; | ||
} |
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