move order store -> orders\order-store
This commit is contained in:
parent
1b99f7f18d
commit
2bb85af46b
@ -1,7 +1,7 @@
|
||||
'use client';
|
||||
|
||||
import { useOrderCreate } from '@/hooks/api/orders';
|
||||
import { useOrderStore } from '@/stores/order';
|
||||
import { useOrderStore } from '@/stores/orders/order-store';
|
||||
import { Button } from '@repo/ui/components/ui/button';
|
||||
|
||||
export function BackButton() {
|
||||
|
||||
@ -6,7 +6,7 @@ import { ContactsFilterProvider } from '@/context/contacts-filter';
|
||||
import { useCustomerContacts } from '@/hooks/api/contacts';
|
||||
// eslint-disable-next-line import/extensions
|
||||
import AvatarPlaceholder from '@/public/avatar/avatar_placeholder.png';
|
||||
import { useOrderStore } from '@/stores/order';
|
||||
import { useOrderStore } from '@/stores/orders/order-store';
|
||||
import { withContext } from '@/utils/context';
|
||||
import { type CustomerFieldsFragment } from '@repo/graphql/types';
|
||||
import { Card } from '@repo/ui/components/ui/card';
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
'use client';
|
||||
|
||||
import { useAvailableTimeSlotsQuery } from '@/hooks/api/slots';
|
||||
import { useOrderStore } from '@/stores/order';
|
||||
import { useOrderStore } from '@/stores/orders/order-store';
|
||||
import { Button } from '@repo/ui/components/ui/button';
|
||||
import { Calendar } from '@repo/ui/components/ui/calendar';
|
||||
import dayjs from 'dayjs';
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
'use client';
|
||||
|
||||
import { useOrderStore } from '@/stores/order';
|
||||
import { useOrderStore } from '@/stores/orders/order-store';
|
||||
import { Button } from '@repo/ui/components/ui/button';
|
||||
|
||||
export function NextButton() {
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
'use client';
|
||||
|
||||
import { useOrderStore } from '@/stores/order';
|
||||
import { useOrderStore } from '@/stores/orders/order-store';
|
||||
import { Button } from '@repo/ui/components/ui/button';
|
||||
import { Card, CardContent } from '@repo/ui/components/ui/card';
|
||||
import { AlertCircle, CheckCircle2, Home, RefreshCw } from 'lucide-react';
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
'use client';
|
||||
|
||||
import { useServicesQuery } from '@/hooks/api/services';
|
||||
import { useOrderStore } from '@/stores/order';
|
||||
import { useOrderStore } from '@/stores/orders/order-store';
|
||||
import { type ServiceFieldsFragment } from '@repo/graphql/types';
|
||||
import { cn } from '@repo/ui/lib/utils';
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
'use client';
|
||||
|
||||
import { useOrderCreate } from '@/hooks/api/orders';
|
||||
import { useOrderStore } from '@/stores/order';
|
||||
import { useOrderStore } from '@/stores/orders/order-store';
|
||||
import { Button } from '@repo/ui/components/ui/button';
|
||||
import { LoadingSpinner } from '@repo/ui/components/ui/spinner';
|
||||
import { useEffect } from 'react';
|
||||
|
||||
@ -12,8 +12,7 @@ import {
|
||||
SuccessPage,
|
||||
} from './components';
|
||||
import { SubmitButton } from './components/submit-button';
|
||||
import { OrderStoreProvider, useOrderStore } from '@/stores/order';
|
||||
import { useInitOrderStore } from '@/stores/order/hooks';
|
||||
import { OrderStoreProvider, useInitOrderStore, useOrderStore } from '@/stores/orders/order-store';
|
||||
import { withContext } from '@/utils/context';
|
||||
import { type JSX } from 'react';
|
||||
|
||||
|
||||
@ -1 +1,2 @@
|
||||
export * from './context';
|
||||
export * from './hooks';
|
||||
@ -5,7 +5,7 @@ import {
|
||||
createServiceSlice,
|
||||
createSlotSlice,
|
||||
createStepsSlice,
|
||||
} from '../lib/slices';
|
||||
} from '../../lib/slices';
|
||||
import { type OrderStore } from './types';
|
||||
import { createStore } from 'zustand';
|
||||
|
||||
@ -5,7 +5,7 @@ import {
|
||||
type ServiceSlice,
|
||||
type SlotSlice,
|
||||
type StepsSlice,
|
||||
} from '../lib/slices';
|
||||
} from '../../lib/slices';
|
||||
|
||||
export type OrderStore = ClientSlice &
|
||||
DateTimeSlice &
|
||||
@ -14,4 +14,4 @@ export type OrderStore = ClientSlice &
|
||||
SlotSlice &
|
||||
StepsSlice;
|
||||
|
||||
export { type Steps } from '../lib/slices';
|
||||
export { type Steps } from '../../lib/slices';
|
||||
Loading…
x
Reference in New Issue
Block a user