refactor: optimize imports (#1822)

This commit is contained in:
Manuel
2024-01-15 17:16:13 +01:00
committed by GitHub
parent c701f723cf
commit 5bae5bf04d
33 changed files with 49 additions and 196 deletions

View File

@@ -5,7 +5,7 @@
* We also create a few inference helpers for input and output types.
*/
import { createTRPCProxyClient, httpBatchLink, loggerLink } from '@trpc/client';
import { WithTRPCConfig, createTRPCNext } from '@trpc/next';
import { createTRPCNext } from '@trpc/next';
import { type inferRouterInputs, type inferRouterOutputs } from '@trpc/server';
import superjson from 'superjson';
import { env } from '~/env';

View File

@@ -1,7 +1,7 @@
import { zodResolver } from '@mantine/form';
import { TFunction } from 'i18next';
import { useTranslation } from 'next-i18next';
import { ErrorMapCtx, ZodIssueCode, ZodSchema, ZodTooBigIssue, ZodTooSmallIssue, z } from 'zod';
import { ErrorMapCtx, z, ZodIssueCode, ZodSchema, ZodTooBigIssue, ZodTooSmallIssue } from 'zod';
export const useI18nZodResolver = () => {
const { t } = useTranslation('zod');