Skip to content

Commit

Permalink
increased test coverage for requests screen
Browse files Browse the repository at this point in the history
  • Loading branch information
chandel-aman committed Nov 29, 2023
1 parent a1d2fdb commit ed597da
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/screens/Requests/Requests.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -352,13 +352,7 @@ const Requests = (): JSX.Element => {
</div>
</div>
</div>
{!isLoading &&
usersData?.users.length === 0 &&
searchByName.length > 0 ? (
<div className={styles.notFound}>
<h4>{t('noRequestFound')}</h4>
</div>
) : isLoading ? (
{isLoading ? (
<TableLoader headerTitles={headerTitles} noOfRows={perPageResult} />
) : (
<InfiniteScroll
Expand Down Expand Up @@ -424,6 +418,11 @@ const Requests = (): JSX.Element => {
</Table>
</InfiniteScroll>
)}
{!isLoading && displayedUsers.length === 0 && (
<div className="w-100 text-center my-4">
<h5 className="m-0 ">{t('noRequestFound')}</h5>
</div>
)}
</SuperAdminScreen>
</>
);
Expand Down

0 comments on commit ed597da

Please sign in to comment.