feat: register pages routes guards.

feat: retrieve all organizations details to authenticated user.
feat: redux organization reducers and actions.
This commit is contained in:
Ahmed Bouhuolia
2020-10-11 00:08:51 +02:00
parent 8622320eef
commit 507690fedf
22 changed files with 348 additions and 66 deletions

View File

@@ -0,0 +1,16 @@
import React from 'react';
import { Redirect } from 'react-router-dom';
export default function EnsureOrganizationIsReady({
children,
}) {
const isOrganizationReady = false;
return (isOrganizationReady) ? children : (
<Redirect
to={{
pathname: '/register'
}}
/>
);
}