From ee61690087d894e90b3655042b352f8f88ca122d Mon Sep 17 00:00:00 2001 From: Leszek Date: Wed, 30 Oct 2024 16:13:21 +0100 Subject: [PATCH] move activityLogs.query.ts to feature dir --- .../queries => components/activity}/activityLogs.query.ts | 6 +++--- jsapp/js/components/activity/formActivity.tsx | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) rename jsapp/js/{query/queries => components/activity}/activityLogs.query.ts (94%) diff --git a/jsapp/js/query/queries/activityLogs.query.ts b/jsapp/js/components/activity/activityLogs.query.ts similarity index 94% rename from jsapp/js/query/queries/activityLogs.query.ts rename to jsapp/js/components/activity/activityLogs.query.ts index c71561527f..6fc5ae9381 100644 --- a/jsapp/js/query/queries/activityLogs.query.ts +++ b/jsapp/js/components/activity/activityLogs.query.ts @@ -1,8 +1,8 @@ import {keepPreviousData, useQuery} from '@tanstack/react-query'; -import type {KoboSelectOption} from 'jsapp/js/components/common/koboSelect'; -import type {PaginatedResponse} from 'jsapp/js/dataInterface'; +import type {KoboSelectOption} from 'js/components/common/koboSelect'; +import type {PaginatedResponse} from 'js/dataInterface'; import moment from 'moment'; -import {QueryKeys} from '../queryKeys'; +import {QueryKeys} from 'js/query/queryKeys'; export interface ActivityLogsItem { id: number; diff --git a/jsapp/js/components/activity/formActivity.tsx b/jsapp/js/components/activity/formActivity.tsx index f55ae3454a..d374de2a2f 100644 --- a/jsapp/js/components/activity/formActivity.tsx +++ b/jsapp/js/components/activity/formActivity.tsx @@ -6,11 +6,11 @@ import KoboSelect from '../common/koboSelect'; import type {UniversalTableColumn} from 'jsapp/js/universalTable/universalTable.component'; import Button from '../common/button'; import PaginatedQueryUniversalTable from 'jsapp/js/universalTable/paginatedQueryUniversalTable.component'; -import type {ActivityLogsItem} from 'jsapp/js/query/queries/activityLogs.query'; +import type {ActivityLogsItem} from './activityLogs.query'; import { useActivityLogsFilterOptionsQuery, useActivityLogsQuery, -} from 'jsapp/js/query/queries/activityLogs.query'; +} from './activityLogs.query'; import styles from './formActivity.module.scss'; import cx from 'classnames'; import {formatTime} from 'jsapp/js/utils';