mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 13:20:31 +00:00
Revert "feat(webapp): deprecate the subscription step in onboarding process"
This reverts commit 0c1bf302e5.
This commit is contained in:
@@ -7,6 +7,7 @@ import SetupWizardContent from './SetupWizardContent';
|
||||
import withOrganization from '@/containers/Organization/withOrganization';
|
||||
import withCurrentOrganization from '@/containers/Organization/withCurrentOrganization';
|
||||
import withSetupWizard from '@/store/organizations/withSetupWizard';
|
||||
import withSubscriptions from '../Subscriptions/withSubscriptions';
|
||||
|
||||
import { compose } from '@/utils';
|
||||
|
||||
@@ -22,6 +23,9 @@ function SetupRightSection({
|
||||
// #withSetupWizard
|
||||
setupStepId,
|
||||
setupStepIndex,
|
||||
|
||||
// #withSubscriptions
|
||||
isSubscriptionActive,
|
||||
}) {
|
||||
return (
|
||||
<section className={'setup-page__right-section'}>
|
||||
@@ -53,6 +57,12 @@ export default compose(
|
||||
isOrganizationBuildRunning,
|
||||
}),
|
||||
),
|
||||
withSubscriptions(
|
||||
({ isSubscriptionActive }) => ({
|
||||
isSubscriptionActive,
|
||||
}),
|
||||
'main',
|
||||
),
|
||||
withSetupWizard(({ setupStepId, setupStepIndex }) => ({
|
||||
setupStepId,
|
||||
setupStepIndex,
|
||||
|
||||
@@ -4,6 +4,7 @@ import React from 'react';
|
||||
import SetupSteps from './SetupSteps';
|
||||
import WizardSetupSteps from './WizardSetupSteps';
|
||||
|
||||
import SetupSubscription from './SetupSubscription';
|
||||
import SetupOrganizationPage from './SetupOrganizationPage';
|
||||
import SetupInitializingForm from './SetupInitializingForm';
|
||||
import SetupCongratsPage from './SetupCongratsPage';
|
||||
@@ -18,6 +19,7 @@ export default function SetupWizardContent({ setupStepIndex, setupStepId }) {
|
||||
|
||||
<div class="setup-page-form">
|
||||
<SetupSteps step={{ id: setupStepId }}>
|
||||
<SetupSubscription id="subscription" />
|
||||
<SetupOrganizationPage id="organization" />
|
||||
<SetupInitializingForm id={'initializing'} />
|
||||
<SetupCongratsPage id="congrats" />
|
||||
|
||||
@@ -25,7 +25,6 @@ export default function WizardSetupSteps({ currentStep = 1 }) {
|
||||
<WizardSetupStep
|
||||
label={step.label}
|
||||
isActive={index + 1 === currentStep}
|
||||
key={index}
|
||||
/>
|
||||
))}
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user