SlotCard: use SlotComponentProps type
This commit is contained in:
parent
d085a3d24d
commit
ca8d88bfc3
@ -1,9 +1,10 @@
|
||||
/* eslint-disable canonical/id-match */
|
||||
'use client';
|
||||
|
||||
import { type SlotComponentProps } from '../types';
|
||||
import { ReadonlyTimeRange } from '@/components/shared/time-range';
|
||||
import { useSlotQuery } from '@/hooks/api/slots';
|
||||
import { Enum_Slot_State, type SlotFieldsFragment } from '@repo/graphql/types';
|
||||
import { Enum_Slot_State } from '@repo/graphql/types';
|
||||
import { Badge } from '@repo/ui/components/ui/badge';
|
||||
import { cn } from '@repo/ui/lib/utils';
|
||||
import Link from 'next/link';
|
||||
@ -15,7 +16,7 @@ const MAP_BADGE_TEXT: Record<Enum_Slot_State, string> = {
|
||||
reserved: 'Зарезервировано',
|
||||
};
|
||||
|
||||
export function SlotCard(props: Readonly<SlotFieldsFragment>) {
|
||||
export function SlotCard(props: Readonly<SlotComponentProps>) {
|
||||
const pathname = usePathname();
|
||||
const { documentId } = props;
|
||||
|
||||
|
||||
@ -2,4 +2,4 @@ import type * as GQL from '@repo/graphql/types';
|
||||
|
||||
export type OrderClient = NonNullable<GQL.GetOrderQuery['order']>['client'];
|
||||
export type OrderComponentProps = GQL.OrderFieldsFragment;
|
||||
export type SlotComponentProps = Pick<GQL.SlotFieldsFragment, 'documentId'>;
|
||||
export type SlotComponentProps = GQL.SlotFieldsFragment;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user