Skip to content
Snippets Groups Projects
Commit 0c345b7b authored by Lukas's avatar Lukas
Browse files

Change useCommentSearch hook response parameter

parent 9b3609c1
No related branches found
No related tags found
1 merge request!514Add comment search to account page
......@@ -50,7 +50,7 @@ const CommentsSearch: React.FC<CommentsSearchProps> = ({
const pathname = usePathname();
const router = useRouter();
const { commentSearchDataLoading } = useCommentSearch(commentSearchProps);
const { isCommentSearchDataLoading } = useCommentSearch(commentSearchProps);
const { operationsTypes } = useOperationsTypes();
......@@ -198,7 +198,7 @@ const CommentsSearch: React.FC<CommentsSearchProps> = ({
disabled={!commentsSearchAccountName || !commentsSearchPermlink}
>
Search
{commentSearchDataLoading && (
{isCommentSearchDataLoading && (
<Loader2 className="ml-2 animate-spin h-4 w-4 ..." />
)}
</Button>
......
......@@ -8,7 +8,7 @@ const useCommentSearch = (
) => {
const {
data: commentSearchData,
isFetching: commentSearchDataLoading,
isLoading: isCommentSearchDataLoading,
isError: commentSearchDataError,
} = useQuery({
queryKey: ["commentSearch", commentSearchProps],
......@@ -25,7 +25,7 @@ const useCommentSearch = (
return {
commentSearchData,
commentSearchDataLoading,
isCommentSearchDataLoading,
commentSearchDataError,
};
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment