Skip to content
Snippets Groups Projects
Commit 5ae19466 authored by Dima Rifai's avatar Dima Rifai
Browse files

Issue #433 - Use NoResult component

parent c5c450d4
No related branches found
No related tags found
1 merge request!531Delrifai/#433 3 unify no results
Pipeline #114105 failed
......@@ -21,6 +21,7 @@ import { Card, CardHeader } from "@/components/ui/card";
import BalanceHistoryChart from "@/components/balanceHistory/BalanceHistoryChart";
import ErrorPage from "../ErrorPage";
import NoResult from "@/components/NoResult";
// Memoizing the BalanceHistoryChart component to avoid unnecessary re-renders
const MemoizedBalanceHistoryChart = React.memo(BalanceHistoryChart);
......@@ -226,8 +227,8 @@ export default function BalanceHistory() {
<BalanceHistorySearch />
{!isAccountBalanceHistoryLoading && !accountBalanceHistory?.total_operations ? (
<div className="w-full my-4 text-center">
No operations were found.
<div>
<NoResult/>
</div>
) : isAccountBalanceHistoryLoading ? (
<div className="flex justify-center text-center items-center">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment