From b8060010d638a9a8566994a01929d01760a31ca9 Mon Sep 17 00:00:00 2001 From: Ahmed Bouhuolia Date: Sat, 10 Oct 2020 15:05:18 +0200 Subject: [PATCH] feat: fix register page layout. --- client/src/common/classes.js | 8 + client/src/common/errors.js | 0 client/src/components/App.js | 5 + .../containers/Authentication/AuthInsider.js | 4 +- client/src/containers/Authentication/Login.js | 2 +- .../Register/RegisterLeftSection.js | 57 ++++ .../RegisterOrganizationForm.js | 2 +- .../Authentication/Register/RegisterPage.js | 14 + .../Register/RegisterRightSection.js | 26 ++ .../RegisterSubscriptionForm.js | 0 .../RegisterUserForm.js} | 249 +++++++++--------- .../{ => Register}/RegisterWizardSteps.js | 2 +- .../Authentication/RegisterLeftSidebar.js | 75 ------ .../Authentication/RegisterWizardPage.js | 17 -- .../Sales/Estimate/EntriesItemsTable.js | 2 +- client/src/routes/authentication.js | 14 +- client/src/routes/register.js | 23 ++ .../src/style/pages/register-wizard-page.scss | 105 ++++---- 18 files changed, 315 insertions(+), 290 deletions(-) create mode 100644 client/src/common/classes.js create mode 100644 client/src/common/errors.js create mode 100644 client/src/containers/Authentication/Register/RegisterLeftSection.js rename client/src/containers/Authentication/{ => Register}/RegisterOrganizationForm.js (99%) create mode 100644 client/src/containers/Authentication/Register/RegisterPage.js create mode 100644 client/src/containers/Authentication/Register/RegisterRightSection.js rename client/src/containers/Authentication/{ => Register}/RegisterSubscriptionForm.js (100%) rename client/src/containers/Authentication/{Register.js => Register/RegisterUserForm.js} (50%) rename client/src/containers/Authentication/{ => Register}/RegisterWizardSteps.js (94%) delete mode 100644 client/src/containers/Authentication/RegisterLeftSidebar.js delete mode 100644 client/src/containers/Authentication/RegisterWizardPage.js create mode 100644 client/src/routes/register.js diff --git a/client/src/common/classes.js b/client/src/common/classes.js new file mode 100644 index 000000000..eeb71cf89 --- /dev/null +++ b/client/src/common/classes.js @@ -0,0 +1,8 @@ + +const CLASSES = { + DATATABLE_EDITOR: 'DATATABLE_EDITOR' +}; + +export { + CLASSES, +} \ No newline at end of file diff --git a/client/src/common/errors.js b/client/src/common/errors.js new file mode 100644 index 000000000..e69de29bb diff --git a/client/src/components/App.js b/client/src/components/App.js index d4e0add38..51c3a8acb 100644 --- a/client/src/components/App.js +++ b/client/src/components/App.js @@ -9,6 +9,7 @@ import PrivateRoute from 'components/PrivateRoute'; import Authentication from 'components/Authentication'; import Dashboard from 'components/Dashboard/Dashboard'; import GlobalErrors from 'containers/GlobalErrors/GlobalErrors'; +import RegisterWizardPage from 'containers/Authentication/Register/RegisterPage'; import messages from 'lang/en'; import 'style/App.scss'; @@ -31,6 +32,10 @@ function App({ locale }) { + + + + diff --git a/client/src/containers/Authentication/AuthInsider.js b/client/src/containers/Authentication/AuthInsider.js index 8e52a4b28..be0ee3601 100644 --- a/client/src/containers/Authentication/AuthInsider.js +++ b/client/src/containers/Authentication/AuthInsider.js @@ -10,10 +10,10 @@ export default function AuthInsider({ return (
- {/* */} +
-
{children}
+
{ children }