Skip to content

Commit

Permalink
Merge pull request #165 from kaleido-io/alignment
Browse files Browse the repository at this point in the history
[alignment] home dashboard recent events vertical scroll
  • Loading branch information
dechdev authored Apr 20, 2022
2 parents be4de68 + 1e1013d commit 3e6c358
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/components/Cards/FireFlyCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ export const FireFlyCard: React.FC<Props> = ({ cardData, size }) => {
alignItems={'flex-start'}
justifyContent="flex-start"
item
direction="column"
sx={{ height: COMPONENT_HEIGHT, width: '100%', overflow: 'auto' }}
>
{cardData.component}
Expand Down
20 changes: 16 additions & 4 deletions src/pages/Home/views/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,13 @@ export const HomeDashboard: () => JSX.Element = () => {
headerText: t('myRecentTransactions'),
clickPath: FF_NAV_PATHS.activityTimelinePath(selectedNamespace),
component: (
<>
<Grid
container
direction="column"
item
alignItems="flex-start"
justifyContent="flex-start"
>
{recentEventTxs?.length === 0 ? (
<EmptyStateCard text={t('noRecentTransactions')} />
) : !recentEventTxs ? (
Expand All @@ -364,15 +370,21 @@ export const HomeDashboard: () => JSX.Element = () => {
</React.Fragment>
))
)}
</>
</Grid>
),
},
// Recent Network Events
{
headerText: t('recentNetworkEvents'),
clickPath: FF_NAV_PATHS.activityTimelinePath(selectedNamespace),
component: (
<>
<Grid
container
direction="column"
item
alignItems="flex-start"
justifyContent="flex-start"
>
{recentEvents?.length === 0 ? (
<EmptyStateCard text={t('noRecentNetworkEvents')} />
) : !recentEvents ? (
Expand Down Expand Up @@ -403,7 +415,7 @@ export const HomeDashboard: () => JSX.Element = () => {
</React.Fragment>
))
)}
</>
</Grid>
),
},
];
Expand Down

0 comments on commit 3e6c358

Please sign in to comment.