R: Add use client directive
Some checks are pending
Backend CI / build (3.12) (push) Waiting to run
Backend CI / notify-failure (push) Blocked by required conditions
Frontend CI / build (22.x) (push) Waiting to run
Frontend CI / notify-failure (push) Blocked by required conditions

This commit is contained in:
Ivan 2025-08-05 20:01:33 +03:00
parent 53f553449f
commit b63a1d8454
55 changed files with 94 additions and 10 deletions

View File

@ -1,3 +1,5 @@
'use client';
import { Suspense } from 'react';
import { Outlet } from 'react-router';
import clsx from 'clsx';

View File

@ -1,3 +1,5 @@
'use client';
import { useNavigate, useRouteError } from 'react-router';
import { Button } from '@/components/control';

View File

@ -1,3 +1,5 @@
'use client';
import { useNavigation } from 'react-router';
import { useDebounce } from 'use-debounce';

View File

@ -1,5 +1,3 @@
'use client';
import { IntlProvider } from 'react-intl';
import { QueryClientProvider } from '@tanstack/react-query';
import { ReactQueryDevtools } from '@tanstack/react-query-devtools';

View File

@ -1,3 +1,5 @@
'use client';
import { ToastContainer, type ToastContainerProps } from 'react-toastify';
import { usePreferencesStore } from '@/stores/preferences';

View File

@ -1,5 +1,3 @@
'use client';
import { Tooltip } from '@/components/container';
import { globalIDs } from '@/utils/constants';

View File

@ -1,3 +1,5 @@
'use client';
import { useWindowSize } from '@/hooks/use-window-size';
import { usePreferencesStore } from '@/stores/preferences';

View File

@ -1,3 +1,5 @@
'use client';
import { useAuth } from '@/features/auth/backend/use-auth';
import { Dropdown, DropdownButton, useDropdown } from '@/components/dropdown';

View File

@ -1,3 +1,5 @@
'use client';
import { Suspense } from 'react';
import { useDropdown } from '@/components/dropdown';

View File

@ -1,3 +1,5 @@
'use client';
import clsx from 'clsx';
import { IconLibrary2, IconManuals, IconNewItem2 } from '@/components/icons';

View File

@ -1,3 +1,5 @@
'use client';
import { useAuthSuspense } from '@/features/auth';
import { IconLogin, IconUser2 } from '@/components/icons';

View File

@ -1,3 +1,5 @@
'use client';
import { useAuthSuspense } from '@/features/auth';
import { useLogout } from '@/features/auth/backend/use-logout';

View File

@ -1,5 +1,4 @@
'use no memo';
'use client';
import { type Table } from '@tanstack/react-table';

View File

@ -1,5 +1,4 @@
'use no memo';
'use client';
import { flexRender, type Header, type HeaderGroup, type Table } from '@tanstack/react-table';
import clsx from 'clsx';

View File

@ -1,3 +1,4 @@
'use client';
'use no memo';
import { useCallback } from 'react';

View File

@ -1,3 +1,5 @@
'use client';
import { useEffect, useState } from 'react';
import clsx from 'clsx';

View File

@ -1,3 +1,5 @@
'use client';
import { Suspense, useState } from 'react';
import { HelpTopic } from '@/features/help';

View File

@ -1,3 +1,5 @@
'use client';
import { TextArea } from '@/components/input';
import { PromptInput } from '../../components/prompt-input';

View File

@ -1,3 +1,5 @@
'use client';
import { Controller, useForm, useWatch } from 'react-hook-form';
import { zodResolver } from '@hookform/resolvers/zod';

View File

@ -1,3 +1,5 @@
'use client';
import { urls, useConceptNavigation } from '@/app';
import { MiniButton } from '@/components/control';

View File

@ -1,3 +1,5 @@
'use client';
import { ErrorBoundary } from 'react-error-boundary';
import { isAxiosError } from 'axios';
import { z } from 'zod';

View File

@ -1,3 +1,5 @@
'use client';
import { useState } from 'react';
import clsx from 'clsx';

View File

@ -1,3 +1,5 @@
'use client';
import { urls, useConceptNavigation } from '@/app';
import { useDeletePromptTemplate } from '@/features/ai/backend/use-delete-prompt-template';
import { useMutatingPrompts } from '@/features/ai/backend/use-mutating-prompts';

View File

@ -1,3 +1,5 @@
'use client';
import { urls, useConceptNavigation } from '@/app';
import { type IPromptTemplate } from '@/features/ai/backend/types';
import { useLabelUser } from '@/features/users';

View File

@ -1,3 +1,5 @@
'use client';
import { useFitHeight } from '@/stores/app-layout';
import { describePromptVariable } from '../../labels';

View File

@ -1,3 +1,5 @@
'use client';
import { urls, useConceptNavigation } from '@/app';
import { TextURL } from '@/components/control';

View File

@ -1,3 +1,5 @@
'use client';
import React, { Suspense } from 'react';
import { type PlacesType, Tooltip } from '@/components/container';

View File

@ -1,3 +1,5 @@
'use client';
import clsx from 'clsx';
import { SelectTree } from '@/components/input';

View File

@ -1,3 +1,5 @@
'use client';
import { urls, useConceptNavigation } from '@/app';
import { useAuthSuspense } from '@/features/auth';

View File

@ -1,3 +1,5 @@
'use client';
import { Suspense } from 'react';
import { useIntl } from 'react-intl';

View File

@ -1,3 +1,5 @@
'use client';
import { urls, useConceptNavigation } from '@/app';
import { useAuthSuspense } from '@/features/auth';
import { useRoleStore, UserRole } from '@/features/users';

View File

@ -1,3 +1,5 @@
'use client';
import { useState } from 'react';
import { useIntl } from 'react-intl';

View File

@ -1,3 +1,5 @@
'use client';
import clsx from 'clsx';
import { HelpTopic } from '@/features/help';

View File

@ -1,3 +1,5 @@
'use client';
import { useIntl } from 'react-intl';
import { useLabelUser } from '@/features/users';

View File

@ -1,3 +1,5 @@
'use client';
import { toast } from 'react-toastify';
import clsx from 'clsx';

View File

@ -1,3 +1,5 @@
'use client';
import { Tooltip } from '@/components/container';
import { globalIDs } from '@/utils/constants';

View File

@ -1,4 +1,5 @@
'use client';
import { useFormContext, useWatch } from 'react-hook-form';
import { Label } from '@/components/input';

View File

@ -1,3 +1,5 @@
'use client';
import { Controller, useFormContext, useWatch } from 'react-hook-form';
import { Label, TextArea, TextInput } from '@/components/input';

View File

@ -1,4 +1,5 @@
'use client';
import { Controller, useFormContext, useWatch } from 'react-hook-form';
import { Label } from '@/components/input';

View File

@ -1,3 +1,5 @@
'use client';
import { useReactFlow } from 'reactflow';
import { useTermGraphStore } from '@/features/rsform/stores/term-graph';

View File

@ -1,4 +1,5 @@
'use client';
import { toast } from 'react-toastify';
import { useLibrary } from '@/features/library/backend/use-library';

View File

@ -1,3 +1,5 @@
'use client';
import { Suspense, useEffect } from 'react';
import clsx from 'clsx';
import { useDebounce } from 'use-debounce';

View File

@ -1,3 +1,5 @@
'use client';
import { urls, useConceptNavigation } from '@/app';
import { type IConstituenta, type IRSForm } from '@/features/rsform';
import { CstType, type IConstituentaBasicsDTO, type ICreateConstituentaDTO } from '@/features/rsform/backend/types';

View File

@ -1,3 +1,5 @@
'use client';
import { useEffect, useState } from 'react';
import { useAIStore } from '@/features/ai/stores/ai-context';

View File

@ -1,3 +1,5 @@
'use client';
import { urls, useConceptNavigation } from '@/app';
import { useAuthSuspense } from '@/features/auth';
import { useRoleStore, UserRole } from '@/features/users';

View File

@ -1,3 +1,5 @@
'use client';
import clsx from 'clsx';
import { globalIDs } from '@/utils/constants';

View File

@ -1,3 +1,5 @@
'use client';
import { Tooltip } from '@/components/container';
import { globalIDs } from '@/utils/constants';

View File

@ -1,3 +1,5 @@
'use client';
import { type IConstituenta } from '@/features/rsform/models/rsform';
import { MiniButton } from '@/components/control';

View File

@ -1,3 +1,5 @@
'use client';
import { FormProvider, useForm, useWatch } from 'react-hook-form';
import { zodResolver } from '@hookform/resolvers/zod';

View File

@ -1,3 +1,5 @@
'use client';
import { IconShowKeyboard } from '@/features/rsform/components/icon-show-keyboard';
import { MiniButton } from '@/components/control';

View File

@ -1,3 +1,5 @@
'use client';
import { useReactFlow, useStoreApi } from 'reactflow';
import { HelpTopic } from '@/features/help';

View File

@ -1,3 +1,5 @@
'use client';
import { urls, useConceptNavigation } from '@/app';
import { useAuthSuspense } from '@/features/auth';

View File

@ -1,3 +1,5 @@
'use client';
import fileDownload from 'js-file-download';
import { urls, useConceptNavigation } from '@/app';

View File

@ -1,5 +1,3 @@
'use client';
import { ComboBox } from '@/components/input/combo-box';
import { type Styling } from '@/components/props';

View File

@ -1,5 +1,3 @@
'use client';
import { MiniButton } from '@/components/control';
import { createColumnHelper, DataTable } from '@/components/data-table';
import { IconRemove } from '@/components/icons';