mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-14 20:00:33 +00:00
61 lines
1.4 KiB
TypeScript
61 lines
1.4 KiB
TypeScript
// @ts-nocheck
|
|
import React from 'react';
|
|
|
|
import SetupDialogs from './SetupDialogs';
|
|
import SetupWizardContent from './SetupWizardContent';
|
|
|
|
import withOrganization from '@/containers/Organization/withOrganization';
|
|
import withCurrentOrganization from '@/containers/Organization/withCurrentOrganization';
|
|
import withSetupWizard from '@/store/organizations/withSetupWizard';
|
|
|
|
import { compose } from '@/utils';
|
|
|
|
/**
|
|
* Wizard setup right section.
|
|
*/
|
|
function SetupRightSection({
|
|
// #withOrganization
|
|
isOrganizationInitialized,
|
|
isOrganizationSeeded,
|
|
isOrganizationSetupCompleted,
|
|
|
|
// #withSetupWizard
|
|
setupStepId,
|
|
setupStepIndex,
|
|
}) {
|
|
return (
|
|
<section className={'setup-page__right-section'}>
|
|
<SetupWizardContent
|
|
setupStepId={setupStepId}
|
|
setupStepIndex={setupStepIndex}
|
|
/>
|
|
<SetupDialogs />
|
|
</section>
|
|
);
|
|
}
|
|
|
|
export default compose(
|
|
withCurrentOrganization(({ organizationTenantId }) => ({
|
|
organizationId: organizationTenantId,
|
|
})),
|
|
withOrganization(
|
|
({
|
|
organization,
|
|
isOrganizationReady,
|
|
isOrganizationSeeded,
|
|
isOrganizationSetupCompleted,
|
|
isOrganizationBuildRunning,
|
|
}) => ({
|
|
organization,
|
|
isOrganizationReady,
|
|
isOrganizationSeeded,
|
|
isOrganizationSetupCompleted,
|
|
isOrganizationBuildRunning,
|
|
}),
|
|
),
|
|
withSetupWizard(({ setupStepId, setupStepIndex }) => ({
|
|
setupStepId,
|
|
setupStepIndex,
|
|
})),
|
|
)(SetupRightSection);
|