refactor(paddle): move script injection closer to checkout
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { Route, Navigate } from 'react-router-dom';
|
||||
import SettingsLayout from 'components/SettingsLayout';
|
||||
import { PaddleProvider } from 'contexts/Paddle.ee';
|
||||
import ProfileSettings from 'pages/ProfileSettings';
|
||||
import BillingAndUsageSettings from 'pages/BillingAndUsageSettings/index.ee';
|
||||
import PlanUpgrade from 'pages/PlanUpgrade/index.ee';
|
||||
@@ -30,7 +31,9 @@ export default (
|
||||
path={URLS.SETTINGS_PLAN_UPGRADE}
|
||||
element={
|
||||
<SettingsLayout>
|
||||
<PlanUpgrade />
|
||||
<PaddleProvider>
|
||||
<PlanUpgrade />
|
||||
</PaddleProvider>
|
||||
</SettingsLayout>
|
||||
}
|
||||
/>
|
||||
|
Reference in New Issue
Block a user