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

Issue #433 - Use NoResult component

parent e247a3ba
No related branches found
No related tags found
1 merge request!531Delrifai/#433 3 unify no results
...@@ -20,6 +20,7 @@ import LastUpdatedTooltip from "../LastUpdatedTooltip"; ...@@ -20,6 +20,7 @@ import LastUpdatedTooltip from "../LastUpdatedTooltip";
import { convertVestsToHP } from "@/utils/Calculations"; import { convertVestsToHP } from "@/utils/Calculations";
import fetchingService from "@/services/FetchingService"; import fetchingService from "@/services/FetchingService";
import { useHiveChainContext } from "@/contexts/HiveChainContext"; import { useHiveChainContext } from "@/contexts/HiveChainContext";
import NoResult from "../NoResult";
type VotersDialogProps = { type VotersDialogProps = {
accountName: string; accountName: string;
...@@ -174,8 +175,8 @@ const VotersDialog: React.FC<VotersDialogProps> = ({ ...@@ -174,8 +175,8 @@ const VotersDialog: React.FC<VotersDialogProps> = ({
isMirrored={false} isMirrored={false}
/> />
{witnessVoters?.voters?.length === 0 && !isWitnessVotersLoading ? ( {witnessVoters?.voters?.length === 0 && !isWitnessVotersLoading ? (
<div className="flex justify-center w-full"> <div>
No results matching given criteria <NoResult/>
</div> </div>
) : ( ) : (
<> <>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment