mirror of
https://github.com/hex248/sprint.git
synced 2026-02-08 18:33:01 +00:00
improved timer system and overlay
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import type {
|
||||
IssueByIdQuery,
|
||||
IssueCreateRequest,
|
||||
IssueRecord,
|
||||
IssueResponse,
|
||||
@@ -21,6 +22,14 @@ export function useIssues(projectId?: number | null) {
|
||||
});
|
||||
}
|
||||
|
||||
export function useIssueById(issueId?: IssueByIdQuery["issueId"] | null) {
|
||||
return useQuery<IssueResponse>({
|
||||
queryKey: queryKeys.issues.byId(issueId ?? 0),
|
||||
queryFn: () => issue.byId(issueId ?? 0),
|
||||
enabled: Boolean(issueId),
|
||||
});
|
||||
}
|
||||
|
||||
export function useIssueStatusCount(organisationId?: number | null, status?: string | null) {
|
||||
return useQuery<StatusCountResponse>({
|
||||
queryKey: queryKeys.issues.statusCount(organisationId ?? 0, status ?? ""),
|
||||
|
||||
Reference in New Issue
Block a user