Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
Block Explorer UI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
Block Explorer UI
Commits
0c345b7b
Commit
0c345b7b
authored
3 months ago
by
Lukas
Browse files
Options
Downloads
Patches
Plain Diff
Change useCommentSearch hook response parameter
parent
9b3609c1
No related branches found
No related tags found
1 merge request
!514
Add comment search to account page
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
components/home/searches/CommentsSearch.tsx
+2
-2
2 additions, 2 deletions
components/home/searches/CommentsSearch.tsx
hooks/api/common/useCommentSearch.ts
+2
-2
2 additions, 2 deletions
hooks/api/common/useCommentSearch.ts
with
4 additions
and
4 deletions
components/home/searches/CommentsSearch.tsx
+
2
−
2
View file @
0c345b7b
...
...
@@ -50,7 +50,7 @@ const CommentsSearch: React.FC<CommentsSearchProps> = ({
const
pathname
=
usePathname
();
const
router
=
useRouter
();
const
{
c
ommentSearchDataLoading
}
=
useCommentSearch
(
commentSearchProps
);
const
{
isC
ommentSearchDataLoading
}
=
useCommentSearch
(
commentSearchProps
);
const
{
operationsTypes
}
=
useOperationsTypes
();
...
...
@@ -198,7 +198,7 @@ const CommentsSearch: React.FC<CommentsSearchProps> = ({
disabled
=
{
!
commentsSearchAccountName
||
!
commentsSearchPermlink
}
>
Search
{
c
ommentSearchDataLoading
&&
(
{
isC
ommentSearchDataLoading
&&
(
<
Loader2
className
=
"ml-2 animate-spin h-4 w-4 ..."
/>
)
}
</
Button
>
...
...
This diff is collapsed.
Click to expand it.
hooks/api/common/useCommentSearch.ts
+
2
−
2
View file @
0c345b7b
...
...
@@ -8,7 +8,7 @@ const useCommentSearch = (
)
=>
{
const
{
data
:
commentSearchData
,
is
Fetch
ing
:
c
ommentSearchDataLoading
,
is
Load
ing
:
isC
ommentSearchDataLoading
,
isError
:
commentSearchDataError
,
}
=
useQuery
({
queryKey
:
[
"
commentSearch
"
,
commentSearchProps
],
...
...
@@ -25,7 +25,7 @@ const useCommentSearch = (
return
{
commentSearchData
,
c
ommentSearchDataLoading
,
isC
ommentSearchDataLoading
,
commentSearchDataError
,
};
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment