packages: upgrade next@15.3.0
This commit is contained in:
parent
dd99e7d984
commit
2676e40df6
@ -1,9 +1,10 @@
|
||||
import { Container } from '@/components/layout';
|
||||
import { PageHeader } from '@/components/navigation';
|
||||
import { SlotButtons, SlotDateTime, SlotOrdersList } from '@/components/schedule';
|
||||
import { type SlotComponentProps } from '@/components/schedule/types';
|
||||
import { dehydrate, HydrationBoundary, QueryClient } from '@tanstack/react-query';
|
||||
|
||||
type Props = { params: Promise<{ documentId: string }> };
|
||||
type Props = { params: Promise<SlotComponentProps> };
|
||||
|
||||
export default async function ProfilePage(props: Readonly<Props>) {
|
||||
const parameters = await props.params;
|
||||
|
||||
@ -1,9 +1,8 @@
|
||||
/* eslint-disable canonical/id-match */
|
||||
'use client';
|
||||
import { type SlotComponentProps } from '../types';
|
||||
import { ReadonlyTimeRange } from './time-range';
|
||||
import { useSlotQuery } from '@/hooks/slots/master';
|
||||
import { Enum_Slot_State } from '@repo/graphql/types';
|
||||
import { Enum_Slot_State, type SlotFieldsFragment } 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 +14,7 @@ const MAP_BADGE_TEXT: Record<Enum_Slot_State, string> = {
|
||||
reserved: 'Зарезервировано',
|
||||
};
|
||||
|
||||
export function SlotCard(props: Readonly<SlotComponentProps>) {
|
||||
export function SlotCard(props: Readonly<SlotFieldsFragment>) {
|
||||
const pathname = usePathname();
|
||||
const { documentId } = props;
|
||||
|
||||
|
||||
@ -3,4 +3,4 @@ import type * as GQL from '@repo/graphql/types';
|
||||
export type OrderClient = NonNullable<GQL.GetOrderQuery['order']>['client'];
|
||||
export type OrderComponentProps = Pick<GQL.OrderFieldsFragment, 'documentId'>;
|
||||
export type Slot = NonNullable<GQL.GetSlotQuery['slot']>;
|
||||
export type SlotComponentProps = GQL.SlotFieldsFragment;
|
||||
export type SlotComponentProps = Pick<GQL.SlotFieldsFragment, 'documentId'>;
|
||||
|
||||
@ -3,6 +3,9 @@ import createNextIntlPlugin from 'next-intl/plugin';
|
||||
const withNextIntl = createNextIntlPlugin('./utils/i18n/i18n.ts');
|
||||
|
||||
const nextConfig = withNextIntl({
|
||||
eslint: {
|
||||
ignoreDuringBuilds: true,
|
||||
},
|
||||
reactStrictMode: true,
|
||||
transpilePackages: ['@repo/ui'],
|
||||
});
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
"dayjs": "^1.11.13",
|
||||
"graphql": "catalog:",
|
||||
"lucide-react": "catalog:",
|
||||
"next": "15.2.0",
|
||||
"next": "15.3.0",
|
||||
"next-auth": "^4.24.11",
|
||||
"next-intl": "^3.26.0",
|
||||
"next-themes": "^0.4.4",
|
||||
|
||||
975
pnpm-lock.yaml
generated
975
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -4,8 +4,8 @@ packages:
|
||||
catalog:
|
||||
"@apollo/client": ^3.12.4
|
||||
"@types/node": ^20
|
||||
"@types/react": ^19
|
||||
"@types/react-dom": ^19
|
||||
"@types/react": ^19.1.0
|
||||
"@types/react-dom": ^19.1.0
|
||||
"@vchikalkin/eslint-config-awesome": ^2.2.2
|
||||
autoprefixer: ^10.4.20
|
||||
dotenv-cli: ^7.4.4
|
||||
@ -18,8 +18,8 @@ catalog:
|
||||
postcss: ^8.4.49
|
||||
postcss-load-config: ^6.0.1
|
||||
prettier: ^3.2.5
|
||||
react: ^19
|
||||
react-dom: ^19
|
||||
react: ^19.1.0
|
||||
react-dom: ^19.1.0
|
||||
rimraf: ^6.0.1
|
||||
tailwindcss: ^3.4.15
|
||||
typescript: ^5.7
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user