refactor \components\schedule dir structure

This commit is contained in:
vchikalkin 2025-02-11 18:49:19 +03:00
parent 61fbc7a3ab
commit 8590809622
8 changed files with 7 additions and 8 deletions

View File

@ -1,7 +1,7 @@
/* eslint-disable canonical/id-match */
'use client';
import { Context, ContextProvider } from '../context';
import { AddTimePair } from './time-pair';
import { AddTimePair } from './components/time-pair';
import { Context, ContextProvider } from './context';
import { ScheduleSlotsContext } from '@/context/schedule-slots';
import { useSlotAdd } from '@/hooks/slots';
import { withContext } from '@/utils/context';

View File

@ -1,7 +1,7 @@
/* eslint-disable canonical/id-match */
'use client';
import { type SlotProps } from '../../types';
import { ContextProvider } from '../context';
import { type SlotProps } from '../types';
import { ReadonlyTimeRange } from './time-pair';
import { useSlotQuery } from '@/hooks/slots';
import { withContext } from '@/utils/context';

View File

@ -1,6 +1,6 @@
'use client';
import { type Slot } from '../../types';
import { Context, type ContextType } from '../context';
import { type Slot } from '../types';
import { useSlotAdd } from '@/hooks/slots';
import { formatTime } from '@/utils/date';
import { Input } from '@repo/ui/components/ui/input';

View File

@ -1,4 +1,5 @@
export * from './add-slot-form';
export * from './calendar';
export * from './datetime-card';
export * from './slot-buttons';
export * from './time-slots';
export * from './slots-list';

View File

@ -1,5 +1,5 @@
'use client';
import { SlotCard } from './slot-card';
import { SlotCard } from './components/slot-card';
import { LoadingSpinner } from '@/components/common/spinner';
import { useSlots } from '@/hooks/slots';

View File

@ -1,2 +0,0 @@
export * from './components/add-slot-form';
export * from './components/slots-list';