From 892ace55661ce706181259ed498082cb7e016e1e Mon Sep 17 00:00:00 2001 From: Ahmed Bouhuolia Date: Tue, 13 Oct 2020 14:45:59 +0200 Subject: [PATCH] feat: optimize register setup page. --- .../src/containers/Setup/SetupLeftSection.js | 11 ++++-- .../containers/Setup/SetupSubscriptionForm.js | 1 + .../containers/Subscriptions/LicenseTab.js | 2 +- .../Subscriptions/billingPaymentmethod.js | 4 +- .../Subscriptions/billingPeriods.js | 5 ++- .../containers/Subscriptions/billingPlans.js | 4 +- client/src/lang/en/index.js | 2 +- client/src/style/objects/typography.scss | 5 +++ client/src/style/pages/billing.scss | 39 +++++++++---------- .../src/style/pages/register-wizard-page.scss | 2 +- 10 files changed, 41 insertions(+), 34 deletions(-) diff --git a/client/src/containers/Setup/SetupLeftSection.js b/client/src/containers/Setup/SetupLeftSection.js index 6359d8525..480a1947f 100644 --- a/client/src/containers/Setup/SetupLeftSection.js +++ b/client/src/containers/Setup/SetupLeftSection.js @@ -1,9 +1,8 @@ -import React, { useState, useCallback } from 'react'; +import React, { useCallback } from 'react'; import { Icon, For } from 'components'; import { FormattedMessage as T } from 'react-intl'; - import withAuthenticationActions from 'containers/Authentication/withAuthenticationActions'; - +import withAuthentication from 'containers/Authentication/withAuthentication'; import footerLinks from 'config/footerLinks'; import { compose } from 'utils'; @@ -22,6 +21,9 @@ function FooterLinkItem({ title, link }) { function SetupLeftSection({ // #withAuthenticationActions requestLogout, + + // #withAuthentication + currentOrganizationId }) { const onClickLogout = useCallback(() => { requestLogout(); @@ -43,7 +45,7 @@ function SetupLeftSection({

- Your oragnization ID: 12342313,
+ Your oragnization ID: { currentOrganizationId },
@@ -65,4 +67,5 @@ function SetupLeftSection({ export default compose( withAuthenticationActions, + withAuthentication(({ currentOrganizationId }) => ({ currentOrganizationId })), )(SetupLeftSection); diff --git a/client/src/containers/Setup/SetupSubscriptionForm.js b/client/src/containers/Setup/SetupSubscriptionForm.js index 9f29d5f01..5590bd213 100644 --- a/client/src/containers/Setup/SetupSubscriptionForm.js +++ b/client/src/containers/Setup/SetupSubscriptionForm.js @@ -56,6 +56,7 @@ function SetupSubscriptionForm({ +