refactor: rename states to view controllers (#1060)

This commit is contained in:
Mo
2022-06-01 10:15:45 -05:00
committed by GitHub
parent 78f39ec85d
commit 54125cec21
177 changed files with 1518 additions and 1365 deletions

View File

@@ -3,12 +3,12 @@ import { FunctionComponent } from 'react'
import PurchaseFlowView from './PurchaseFlowView'
import { PurchaseFlowWrapperProps } from './PurchaseFlowWrapperProps'
const PurchaseFlowWrapper: FunctionComponent<PurchaseFlowWrapperProps> = ({ appState, application }) => {
if (!appState.purchaseFlow.isOpen) {
const PurchaseFlowWrapper: FunctionComponent<PurchaseFlowWrapperProps> = ({ viewControllerManager, application }) => {
if (!viewControllerManager.purchaseFlowController.isOpen) {
return null
}
return <PurchaseFlowView appState={appState} application={application} />
return <PurchaseFlowView viewControllerManager={viewControllerManager} application={application} />
}
export default observer(PurchaseFlowWrapper)