Skip to content

Commit

Permalink
correcting DAO not found page (#373)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rekard0 authored May 11, 2021
1 parent afaad70 commit 6af21f7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 16 deletions.
22 changes: 10 additions & 12 deletions packages/govern-console/src/containers/DAO/DaoMainPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,10 @@ const DaoMainPage: React.FC<{
return <div>Loading...</div>;
}

return (
<DaoPageMainDiv id="dao-page-wrapper">
{isAnExistingDao ? (
daoDetails === undefined ? (
if (isAnExistingDao) {
return (
<DaoPageMainDiv id="dao-page-wrapper">
{daoDetails === undefined ? (
'loading'
) : (
<>
Expand Down Expand Up @@ -329,13 +329,11 @@ const DaoMainPage: React.FC<{
)}
</div>
</>
)
) : (
<>
<NoDaoFound />
</>
)}
</DaoPageMainDiv>
);
)}
</DaoPageMainDiv>
);
} else {
return <NoDaoFound />;
}
};
export default memo(DaoMainPage);
5 changes: 1 addition & 4 deletions packages/govern-console/src/containers/DAO/NoDaoFound.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,9 @@ import daoNoutFound from 'images/dao-not-found.svg';
//* Styled Components List

const VerticalAlignWrapper = styled('div')(({ theme }) => ({
transform: 'translate(-50%, -50%)',
position: 'absolute',
top: '50%',
left: '50%',
height: 'fit-content',
width: 'fit-content',
padding: '120px',
margin: 'auto',
}));

Expand Down

0 comments on commit 6af21f7

Please sign in to comment.