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

Issue #433 - Use NoResult component

parent 06a48115
No related branches found
No related tags found
1 merge request!531Delrifai/#433 3 unify no results
......@@ -8,6 +8,7 @@ import BalanceHistoryChart from "../balanceHistory/BalanceHistoryChart";
import moment from "moment";
import { useRouter } from "next/router";
import { Loader2 } from "lucide-react";
import NoResult from "../NoResult";
// Define the type for balance operation data
type AccountBalanceHistoryCardProps = {
......@@ -201,7 +202,7 @@ const AccountBalanceHistoryCard: React.FC<AccountBalanceHistoryCardProps> = ({
</p>
)}
{!isLoading && !hasData && (
<p className="text-sm text-center">No balance information found.</p>
<NoResult/>
)}
{!isLoading && hasData && (
<BalanceHistoryChart
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment