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

Issue #433 - Use NoResult component

parent 2a1bb072
No related branches found
No related tags found
1 merge request!531Delrifai/#433 3 unify no results
......@@ -8,6 +8,7 @@ import CommentSearchResults from "@/components/home/searches/searchesResults/Com
import { Card, CardHeader, CardTitle, CardContent } from "@/components/ui/card";
import { TabsContent } from "@/components/ui/tabs";
import { useSearchesContext } from "@/contexts/SearchesContext";
import NoResult from "@/components/NoResult";
const CommentsTabContent = () => {
const router = useRouter();
......@@ -23,8 +24,8 @@ const CommentsTabContent = () => {
const buildCommentSearchView = () => {
if (!isCommentSearchDataLoading && !commentSearchData?.total_operations) {
return (
<div className="w-full my-4 text-text text-center">
No operations were found.
<div>
<NoResult/>
</div>
);
} else if (isCommentSearchDataLoading) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment