refactor: replace 'preact' with 'react' (#1048)
This commit is contained in:
@@ -1,20 +1,14 @@
|
||||
import { WebApplication } from '@/UIModels/Application'
|
||||
import { AppState } from '@/UIModels/AppState'
|
||||
import { observer } from 'mobx-react-lite'
|
||||
import { FunctionComponent } from 'preact'
|
||||
import { PurchaseFlowView } from './PurchaseFlowView'
|
||||
import { FunctionComponent } from 'react'
|
||||
import PurchaseFlowView from './PurchaseFlowView'
|
||||
import { PurchaseFlowWrapperProps } from './PurchaseFlowWrapperProps'
|
||||
|
||||
export type PurchaseFlowWrapperProps = {
|
||||
appState: AppState
|
||||
application: WebApplication
|
||||
const PurchaseFlowWrapper: FunctionComponent<PurchaseFlowWrapperProps> = ({ appState, application }) => {
|
||||
if (!appState.purchaseFlow.isOpen) {
|
||||
return null
|
||||
}
|
||||
|
||||
return <PurchaseFlowView appState={appState} application={application} />
|
||||
}
|
||||
|
||||
export const PurchaseFlowWrapper: FunctionComponent<PurchaseFlowWrapperProps> = observer(
|
||||
({ appState, application }) => {
|
||||
if (!appState.purchaseFlow.isOpen) {
|
||||
return null
|
||||
}
|
||||
|
||||
return <PurchaseFlowView appState={appState} application={application} />
|
||||
},
|
||||
)
|
||||
export default observer(PurchaseFlowWrapper)
|
||||
|
||||
Reference in New Issue
Block a user