Skip to content

Commit

Permalink
Merge pull request #147 from multiversx/amg-empty-state-transactions
Browse files Browse the repository at this point in the history
Fix transactions empty state message
  • Loading branch information
mgavrila authored Oct 30, 2023
2 parents 76f8d0e + e532bcb commit a8ec9e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/pages/Dashboard/widgets/Transactions/Transactions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,18 @@ export const Transactions = (payload: TransactionsPropsType) => {
getTransactions();
}, []);

if (!isLoading && !transactions) {
if (!isLoading && transactions.length === 0) {
return (
<OutputContainer>
<p>No transactions found</p>
<p className='text-gray-400'>No transactions found</p>
</OutputContainer>
);
}

return (
<div className='flex flex-col'>
<OutputContainer isLoading={isLoading} className='p-0'>
<div className='w-full h-full bg-gray-100 overflow-x-auto bg-white shadow rounded-lg'>
<div className='w-full h-full overflow-x-auto bg-white shadow rounded-lg'>
<table className='w-full divide-y divide-gray-200 overflow-auto table-auto'>
<thead className='bg-gray-50'>
<tr>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Home/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const Home = () => {
<Transaction />
</div>
</div>
<div className='h-4/6 bg-mvx-white bg-contain bg-center bg-no-repeat w-1/2 bg-center' />
<div className='h-4/6 bg-mvx-white bg-contain bg-no-repeat w-1/2 bg-center' />
</div>
</PageWrapper>
</AuthRedirectWrapper>
Expand Down

0 comments on commit a8ec9e9

Please sign in to comment.