New reports screens.

This commit is contained in:
Mike Cao committed 2023-06-15 03:27:41 -07:00
1 parent 293e84acab
commit 2b13002f1b
9 files changed
+101 -14

No files matched your search

+1
View File
@@ -10,6 +10,7 @@ export * from './useLocale';
export * from './useMessages';
export * from './usePageQuery';
export * from './useReport';
export * from './useReports';
export * from './useRequireLogin';
export * from './useShareToken';
export * from './useSticky';
+10
View File
@@ -0,0 +1,10 @@
import useApi from './useApi';
export function useReports() {
const { get, useQuery } = useApi();
const { data, error, isLoading } = useQuery(['reports'], () => get(`/reports`));
return { reports: data, error, isLoading };
}
export default useReports;