new line after 'use client' & 'use server' directives
This commit is contained in:
parent
7eac84cafb
commit
5d1d79b241
@ -1,4 +1,5 @@
|
|||||||
'use server';
|
'use server';
|
||||||
|
|
||||||
import { useService } from './lib/service';
|
import { useService } from './lib/service';
|
||||||
import { SlotsService } from '@repo/graphql/api/slots';
|
import { SlotsService } from '@repo/graphql/api/slots';
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
'use server';
|
'use server';
|
||||||
|
|
||||||
import { authOptions } from '@/config/auth';
|
import { authOptions } from '@/config/auth';
|
||||||
import { getServerSession } from 'next-auth/next';
|
import { getServerSession } from 'next-auth/next';
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
/* eslint-disable promise/prefer-await-to-then */
|
/* eslint-disable promise/prefer-await-to-then */
|
||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { getTelegramUser } from '@/mocks/get-telegram-user';
|
import { getTelegramUser } from '@/mocks/get-telegram-user';
|
||||||
import { LoadingSpinner } from '@repo/ui/components/ui/spinner';
|
import { LoadingSpinner } from '@repo/ui/components/ui/spinner';
|
||||||
import { signIn, useSession } from 'next-auth/react';
|
import { signIn, useSession } from 'next-auth/react';
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { useClientOnce } from '@/hooks/telegram';
|
import { useClientOnce } from '@/hooks/telegram';
|
||||||
import { isTMA } from '@telegram-apps/sdk-react';
|
import { isTMA } from '@telegram-apps/sdk-react';
|
||||||
import { redirect } from 'next/navigation';
|
import { redirect } from 'next/navigation';
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
/* eslint-disable promise/prefer-await-to-then */
|
/* eslint-disable promise/prefer-await-to-then */
|
||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { initData, isMiniAppDark, useSignal } from '@telegram-apps/sdk-react';
|
import { initData, isMiniAppDark, useSignal } from '@telegram-apps/sdk-react';
|
||||||
import { signIn, useSession } from 'next-auth/react';
|
import { signIn, useSession } from 'next-auth/react';
|
||||||
import { useTheme } from 'next-themes';
|
import { useTheme } from 'next-themes';
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { useCustomerMutation } from '@/hooks/api/customers';
|
import { useCustomerMutation } from '@/hooks/api/customers';
|
||||||
import { initData, useSignal } from '@telegram-apps/sdk-react';
|
import { initData, useSignal } from '@telegram-apps/sdk-react';
|
||||||
import { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { LoadingSpinner } from '../common/spinner';
|
import { LoadingSpinner } from '../common/spinner';
|
||||||
import { useCustomerContacts } from '@/hooks/api/contacts';
|
import { useCustomerContacts } from '@/hooks/api/contacts';
|
||||||
import * as GQL from '@repo/graphql/types';
|
import * as GQL from '@repo/graphql/types';
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { ContactsFilterContext, type FilterType } from '@/context/contacts-filter';
|
import { ContactsFilterContext, type FilterType } from '@/context/contacts-filter';
|
||||||
import { Button } from '@repo/ui/components/ui/button';
|
import { Button } from '@repo/ui/components/ui/button';
|
||||||
import {
|
import {
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { NavButton } from './components/nav-button';
|
import { NavButton } from './components/nav-button';
|
||||||
import { BookOpen, Newspaper, PlusCircle, User, Users } from 'lucide-react';
|
import { BookOpen, Newspaper, PlusCircle, User, Users } from 'lucide-react';
|
||||||
import { usePathname } from 'next/navigation';
|
import { usePathname } from 'next/navigation';
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { ArrowLeft } from 'lucide-react';
|
import { ArrowLeft } from 'lucide-react';
|
||||||
import { useRouter } from 'next/navigation';
|
import { useRouter } from 'next/navigation';
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { Button } from '@repo/ui/components/ui/button';
|
import { Button } from '@repo/ui/components/ui/button';
|
||||||
import Link from 'next/link';
|
import Link from 'next/link';
|
||||||
import { usePathname } from 'next/navigation';
|
import { usePathname } from 'next/navigation';
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { BackButton } from './components/back-button';
|
import { BackButton } from './components/back-button';
|
||||||
|
|
||||||
type Props = { title: string | undefined };
|
type Props = { title: string | undefined };
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { useOrderCreate } from '@/hooks/api/orders';
|
import { useOrderCreate } from '@/hooks/api/orders';
|
||||||
import { useOrderStore } from '@/stores/order';
|
import { useOrderStore } from '@/stores/order';
|
||||||
import { Button } from '@repo/ui/components/ui/button';
|
import { Button } from '@repo/ui/components/ui/button';
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { ContactsGridBase } from './components';
|
import { ContactsGridBase } from './components';
|
||||||
import { LoadingSpinner } from '@/components/common/spinner';
|
import { LoadingSpinner } from '@/components/common/spinner';
|
||||||
import { ContactsFilterProvider } from '@/context/contacts-filter';
|
import { ContactsFilterProvider } from '@/context/contacts-filter';
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { useOrderStore } from '@/stores/order';
|
import { useOrderStore } from '@/stores/order';
|
||||||
import { Calendar } from '@repo/ui/components/ui/calendar';
|
import { Calendar } from '@repo/ui/components/ui/calendar';
|
||||||
import dayjs from 'dayjs';
|
import dayjs from 'dayjs';
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
/* eslint-disable canonical/id-match */
|
/* eslint-disable canonical/id-match */
|
||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { useSlotsQuery } from '@/hooks/api/slots';
|
import { useSlotsQuery } from '@/hooks/api/slots';
|
||||||
import { useOrderStore } from '@/stores/order';
|
import { useOrderStore } from '@/stores/order';
|
||||||
import { Enum_Slot_State, type SlotFieldsFragment } from '@repo/graphql/types';
|
import { Enum_Slot_State, type SlotFieldsFragment } from '@repo/graphql/types';
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { useOrderStore } from '@/stores/order';
|
import { useOrderStore } from '@/stores/order';
|
||||||
import { Button } from '@repo/ui/components/ui/button';
|
import { Button } from '@repo/ui/components/ui/button';
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { useOrderStore } from '@/stores/order';
|
import { useOrderStore } from '@/stores/order';
|
||||||
import { Button } from '@repo/ui/components/ui/button';
|
import { Button } from '@repo/ui/components/ui/button';
|
||||||
import { Card, CardContent } from '@repo/ui/components/ui/card';
|
import { Card, CardContent } from '@repo/ui/components/ui/card';
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { useServicesQuery } from '@/hooks/api/services';
|
import { useServicesQuery } from '@/hooks/api/services';
|
||||||
import { useOrderStore } from '@/stores/order';
|
import { useOrderStore } from '@/stores/order';
|
||||||
import { type ServiceFieldsFragment } from '@repo/graphql/types';
|
import { type ServiceFieldsFragment } from '@repo/graphql/types';
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { useOrderCreate } from '@/hooks/api/orders';
|
import { useOrderCreate } from '@/hooks/api/orders';
|
||||||
import { useOrderStore } from '@/stores/order';
|
import { useOrderStore } from '@/stores/order';
|
||||||
import { Button } from '@repo/ui/components/ui/button';
|
import { Button } from '@repo/ui/components/ui/button';
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { LoadingSpinner } from '../common/spinner';
|
import { LoadingSpinner } from '../common/spinner';
|
||||||
import {
|
import {
|
||||||
BackButton,
|
BackButton,
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
/* eslint-disable promise/prefer-await-to-then */
|
/* eslint-disable promise/prefer-await-to-then */
|
||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { Checkbox, type CheckboxProps } from '@repo/ui/components/ui/checkbox';
|
import { Checkbox, type CheckboxProps } from '@repo/ui/components/ui/checkbox';
|
||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
import { useDebouncedCallback } from 'use-debounce';
|
import { useDebouncedCallback } from 'use-debounce';
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
/* eslint-disable promise/prefer-await-to-then */
|
/* eslint-disable promise/prefer-await-to-then */
|
||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { type CustomerInput } from '@repo/graphql/types';
|
import { type CustomerInput } from '@repo/graphql/types';
|
||||||
import { Input } from '@repo/ui/components/ui/input';
|
import { Input } from '@repo/ui/components/ui/input';
|
||||||
import { Label } from '@repo/ui/components/ui/label';
|
import { Label } from '@repo/ui/components/ui/label';
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { CardSectionHeader } from '../ui';
|
import { CardSectionHeader } from '../ui';
|
||||||
import { CheckboxWithText, DataField } from './components';
|
import { CheckboxWithText, DataField } from './components';
|
||||||
import { type ProfileProps } from './types';
|
import { type ProfileProps } from './types';
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
/* eslint-disable canonical/id-match */
|
/* eslint-disable canonical/id-match */
|
||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { LinkButton } from './components';
|
import { LinkButton } from './components';
|
||||||
import { type ProfileProps } from './types';
|
import { type ProfileProps } from './types';
|
||||||
import { useCustomerQuery } from '@/hooks/api/customers';
|
import { useCustomerQuery } from '@/hooks/api/customers';
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { LoadingSpinner } from '../common/spinner';
|
import { LoadingSpinner } from '../common/spinner';
|
||||||
import { type ProfileProps } from './types';
|
import { type ProfileProps } from './types';
|
||||||
import { useCustomerQuery } from '@/hooks/api/customers';
|
import { useCustomerQuery } from '@/hooks/api/customers';
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { ScheduleContext } from '@/context/schedule';
|
import { ScheduleContext } from '@/context/schedule';
|
||||||
import { Calendar } from '@repo/ui/components/ui/calendar';
|
import { Calendar } from '@repo/ui/components/ui/calendar';
|
||||||
import dayjs from 'dayjs';
|
import dayjs from 'dayjs';
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
/* eslint-disable canonical/id-match */
|
/* eslint-disable canonical/id-match */
|
||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { type OrderClient, type OrderComponentProps } from '../types';
|
import { type OrderClient, type OrderComponentProps } from '../types';
|
||||||
import { ReadonlyTimeRange } from './time-range';
|
import { ReadonlyTimeRange } from './time-range';
|
||||||
import { useOrderQuery } from '@/hooks/api/orders';
|
import { useOrderQuery } from '@/hooks/api/orders';
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
/* eslint-disable canonical/id-match */
|
/* eslint-disable canonical/id-match */
|
||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { ReadonlyTimeRange } from './time-range';
|
import { ReadonlyTimeRange } from './time-range';
|
||||||
import { useSlotQuery } from '@/hooks/api/slots';
|
import { useSlotQuery } from '@/hooks/api/slots';
|
||||||
import { Enum_Slot_State, type SlotFieldsFragment } from '@repo/graphql/types';
|
import { Enum_Slot_State, type SlotFieldsFragment } from '@repo/graphql/types';
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { type SlotComponentProps } from '../types';
|
import { type SlotComponentProps } from '../types';
|
||||||
import { useSlotQuery } from '@/hooks/api/slots';
|
import { useSlotQuery } from '@/hooks/api/slots';
|
||||||
import { formatDate } from '@repo/graphql/utils/datetime-format';
|
import { formatDate } from '@repo/graphql/utils/datetime-format';
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
/* eslint-disable react/jsx-no-bind */
|
/* eslint-disable react/jsx-no-bind */
|
||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { ScheduleTimeContext } from '../context';
|
import { ScheduleTimeContext } from '../context';
|
||||||
import { type SlotComponentProps } from '../types';
|
import { type SlotComponentProps } from '../types';
|
||||||
import { EditableTimeRangeForm, ReadonlyTimeRange } from './time-range';
|
import { EditableTimeRangeForm, ReadonlyTimeRange } from './time-range';
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { ScheduleTimeContext } from '../context';
|
import { ScheduleTimeContext } from '../context';
|
||||||
import { formatTime } from '@repo/graphql/utils/datetime-format';
|
import { formatTime } from '@repo/graphql/utils/datetime-format';
|
||||||
import { Input } from '@repo/ui/components/ui/input';
|
import { Input } from '@repo/ui/components/ui/input';
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
createContext,
|
createContext,
|
||||||
type Dispatch,
|
type Dispatch,
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
/* eslint-disable canonical/id-match */
|
/* eslint-disable canonical/id-match */
|
||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { EditableTimeRangeForm } from './components/time-range';
|
import { EditableTimeRangeForm } from './components/time-range';
|
||||||
import { ScheduleTimeContext, ScheduleTimeContextProvider } from './context';
|
import { ScheduleTimeContext, ScheduleTimeContextProvider } from './context';
|
||||||
import { useSlotCreate } from '@/hooks/api/slots';
|
import { useSlotCreate } from '@/hooks/api/slots';
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { SlotCard } from './components/slot-card';
|
import { SlotCard } from './components/slot-card';
|
||||||
import { DaySlotAddForm } from './day-slot-add-form';
|
import { DaySlotAddForm } from './day-slot-add-form';
|
||||||
import { LoadingSpinner } from '@/components/common/spinner';
|
import { LoadingSpinner } from '@/components/common/spinner';
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
/* eslint-disable react/jsx-no-bind */
|
/* eslint-disable react/jsx-no-bind */
|
||||||
/* eslint-disable canonical/id-match */
|
/* eslint-disable canonical/id-match */
|
||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { type SlotComponentProps } from './types';
|
import { type SlotComponentProps } from './types';
|
||||||
import { useSlotDelete, useSlotMutation, useSlotQuery } from '@/hooks/api/slots';
|
import { useSlotDelete, useSlotMutation, useSlotQuery } from '@/hooks/api/slots';
|
||||||
import { Enum_Slot_State } from '@repo/graphql/types';
|
import { Enum_Slot_State } from '@repo/graphql/types';
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { SlotDate } from './components/slot-date';
|
import { SlotDate } from './components/slot-date';
|
||||||
import { SlotTime } from './components/slot-time';
|
import { SlotTime } from './components/slot-time';
|
||||||
import { ScheduleTimeContextProvider } from './context';
|
import { ScheduleTimeContextProvider } from './context';
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { OrderCard } from './components/order-card';
|
import { OrderCard } from './components/order-card';
|
||||||
import { type SlotComponentProps } from './types';
|
import { type SlotComponentProps } from './types';
|
||||||
import { useSlotQuery } from '@/hooks/api/slots';
|
import { useSlotQuery } from '@/hooks/api/slots';
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { createContext, type PropsWithChildren, useMemo, useState } from 'react';
|
import { createContext, type PropsWithChildren, useMemo, useState } from 'react';
|
||||||
|
|
||||||
export type FilterType = 'all' | 'clients' | 'masters';
|
export type FilterType = 'all' | 'clients' | 'masters';
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { createContext, useMemo, useState } from 'react';
|
import { createContext, useMemo, useState } from 'react';
|
||||||
|
|
||||||
type ContextType = {
|
type ContextType = {
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { useClientsQuery, useMastersQuery } from './query';
|
import { useClientsQuery, useMastersQuery } from './query';
|
||||||
import { ContactsFilterContext } from '@/context/contacts-filter';
|
import { ContactsFilterContext } from '@/context/contacts-filter';
|
||||||
import { sift } from 'radash';
|
import { sift } from 'radash';
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { getCustomer, updateCustomer } from '@/actions/api/customers';
|
import { getCustomer, updateCustomer } from '@/actions/api/customers';
|
||||||
import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query';
|
import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query';
|
||||||
import { useSession } from 'next-auth/react';
|
import { useSession } from 'next-auth/react';
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { createOrder, getOrder } from '@/actions/api/orders';
|
import { createOrder, getOrder } from '@/actions/api/orders';
|
||||||
import { useMutation, useQuery } from '@tanstack/react-query';
|
import { useMutation, useQuery } from '@tanstack/react-query';
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { getService, getServices } from '@/actions/api/services';
|
import { getService, getServices } from '@/actions/api/services';
|
||||||
import { useQuery } from '@tanstack/react-query';
|
import { useQuery } from '@tanstack/react-query';
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { useCustomerQuery } from './customers';
|
import { useCustomerQuery } from './customers';
|
||||||
import { createSlot, deleteSlot, getSlot, getSlots, updateSlot } from '@/actions/api/slots';
|
import { createSlot, deleteSlot, getSlot, getSlots, updateSlot } from '@/actions/api/slots';
|
||||||
import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query';
|
import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query';
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { SessionProvider } from 'next-auth/react';
|
import { SessionProvider } from 'next-auth/react';
|
||||||
|
|
||||||
export function AuthProvider({ children }: { readonly children: React.ReactNode }) {
|
export function AuthProvider({ children }: { readonly children: React.ReactNode }) {
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
/* eslint-disable sonarjs/function-return-type */
|
/* eslint-disable sonarjs/function-return-type */
|
||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { useClientOnce, useDidMount } from '@/hooks/telegram';
|
import { useClientOnce, useDidMount } from '@/hooks/telegram';
|
||||||
import { setLocale } from '@/utils/i18n/locale';
|
import { setLocale } from '@/utils/i18n/locale';
|
||||||
import { init } from '@/utils/telegram/init';
|
import { init } from '@/utils/telegram/init';
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { ThemeProvider as NextThemesProvider } from 'next-themes';
|
import { ThemeProvider as NextThemesProvider } from 'next-themes';
|
||||||
import { type ComponentProps, useEffect, useState } from 'react';
|
import { type ComponentProps, useEffect, useState } from 'react';
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { createOrderStore } from './store';
|
import { createOrderStore } from './store';
|
||||||
import { createContext, type PropsWithChildren, useRef } from 'react';
|
import { createContext, type PropsWithChildren, useRef } from 'react';
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
/* eslint-disable canonical/id-match */
|
/* eslint-disable canonical/id-match */
|
||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { OrderStoreContext } from './context';
|
import { OrderStoreContext } from './context';
|
||||||
import { type OrderStore, type Steps } from './types';
|
import { type OrderStore, type Steps } from './types';
|
||||||
import { useCustomerQuery } from '@/hooks/api/customers';
|
import { useCustomerQuery } from '@/hooks/api/customers';
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
||||||
import { cn } from '@repo/ui/lib/utils';
|
import { cn } from '@repo/ui/lib/utils';
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
|
|||||||
@ -2,6 +2,7 @@
|
|||||||
/* eslint-disable @typescript-eslint/no-shadow */
|
/* eslint-disable @typescript-eslint/no-shadow */
|
||||||
/* eslint-disable react/no-unstable-nested-components */
|
/* eslint-disable react/no-unstable-nested-components */
|
||||||
'use client';
|
'use client';
|
||||||
|
|
||||||
import { buttonVariants } from '@repo/ui/components/ui/button';
|
import { buttonVariants } from '@repo/ui/components/ui/button';
|
||||||
import { cn } from '@repo/ui/lib/utils';
|
import { cn } from '@repo/ui/lib/utils';
|
||||||
import { ru } from 'date-fns/locale';
|
import { ru } from 'date-fns/locale';
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user