Skip to content

Commit

Permalink
fix: show spinner when creating org
Browse files Browse the repository at this point in the history
  • Loading branch information
danielstefanequilobe committed Jul 29, 2022
1 parent 78f8cae commit ce90ff4
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions src/components/blocks/LeftNav.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,23 @@ const LeftNav = withTheme(({ children }) => {
<FormattedMessage id="basic-registry" />
</ButtonText>
</StyledTitleContainer>
{!myOrgIsNotCreated && !isMyOrgPending && (
<>
<MenuItem
selected={isProjectsPage && isMyRegistryPage}
to={`/projects?orgUid=${myOrgUid}&myRegistry=true`}
>
<FormattedMessage id="my-projects" />
</MenuItem>
<div></div>
<MenuItem
selected={isUnitsPage && isMyRegistryPage}
to={`/units?orgUid=${myOrgUid}&myRegistry=true`}
>
<FormattedMessage id="my-units" />
</MenuItem>
</>
)}
{!myOrgIsNotCreated && !isMyOrgPending && (
<MenuItem selected={isOrganizationPage} to="/organization">
<FormattedMessage id="my-organization" />
Expand All @@ -154,23 +171,6 @@ const LeftNav = withTheme(({ children }) => {
<FormattedMessage id="creating-organization" />
</MenuItem>
)}
{!myOrgIsNotCreated && !isMyOrgPending && (
<>
<MenuItem
selected={isProjectsPage && isMyRegistryPage}
to={`/projects?orgUid=${myOrgUid}&myRegistry=true`}
>
<FormattedMessage id="my-projects" />
</MenuItem>
<div></div>
<MenuItem
selected={isUnitsPage && isMyRegistryPage}
to={`/units?orgUid=${myOrgUid}&myRegistry=true`}
>
<FormattedMessage id="my-units" />
</MenuItem>
</>
)}
{myOrgIsNotCreated && (
<>
<MenuItem
Expand Down

0 comments on commit ce90ff4

Please sign in to comment.