Skip to content
Snippets Groups Projects
Unverified Commit 5c5d5754 authored by Júlia Jaeger Foresti's avatar Júlia Jaeger Foresti Committed by GitHub
Browse files

Chore: Convert client/views/directory/hooks to ts (#26936)

parent ddb0b686
No related branches found
No related tags found
No related merge requests found
import { useMemo } from 'react';
export function useQuery({ text, itemsPerPage, current }, [column, direction], type, workspace = 'local') {
export function useQuery(
{ text, itemsPerPage, current }: { text: string; current: number; itemsPerPage: number },
[column, direction]: [string, 'asc' | 'desc'],
type: string,
workspace = 'local',
): { offset?: number | undefined; count?: number; query: string; sort: string } {
return useMemo(
() => ({
query: JSON.stringify({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment