Skip to content

Commit

Permalink
ZENKO-2734 Account redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas2bert committed Aug 14, 2020
1 parent 2c87eda commit 44baae1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions src/react/account/AccountContent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@ function AccountContent() {
const { accountName: accountNameParam } = useParams();
const account = useMemo(() => accountList.find(a => a.userName === accountNameParam), [accountList, accountNameParam]);

// while loading/redirecting to the first account.
if (!accountNameParam && accountList.length > 0) {
// TODO: add a loader.
return <L.ContentSection> </L.ContentSection>;
}

// empty state.
if (accountList.length === 0) {
return <EmptyState />;
Expand Down
2 changes: 1 addition & 1 deletion src/react/ui-elements/ListLayout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const Container = styled.div`
`;

export const ListSection = styled.div`
flex: 0 1 450px;
flex: 0 0 450px;
flex-direction: column;
height: calc(100% - 40px);
Expand Down

0 comments on commit 44baae1

Please sign in to comment.