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

Issue #433 - Use NoResult component

parent 0f740f70
No related branches found
No related tags found
1 merge request!526Delrifai/#433 add no result component
...@@ -14,6 +14,7 @@ import useCommentSearch from "@/hooks/api/common/useCommentSearch"; ...@@ -14,6 +14,7 @@ import useCommentSearch from "@/hooks/api/common/useCommentSearch";
import { useSearchesContext } from "@/contexts/SearchesContext"; import { useSearchesContext } from "@/contexts/SearchesContext";
import { getCommentPageLink } from "../utils/commentSearchHelpers"; import { getCommentPageLink } from "../utils/commentSearchHelpers";
import { usePathname } from "next/navigation"; import { usePathname } from "next/navigation";
import NoResults from "@/components/NoResults";
const CommentSearchResults = () => { const CommentSearchResults = () => {
const { const {
...@@ -91,9 +92,7 @@ const CommentSearchResults = () => { ...@@ -91,9 +92,7 @@ const CommentSearchResults = () => {
/> />
</div> </div>
) : ( ) : (
<div className="flex justify-center w-full text-black dark:text-white"> <NoResults/>
No operations matching given criteria
</div>
)} )}
</> </>
); );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment