From 4d255732891949b338c81125a32dbc182afc581e Mon Sep 17 00:00:00 2001 From: Hrishikesh Vaipurkar Date: Wed, 21 Aug 2024 16:25:33 +0200 Subject: [PATCH] feat(SW-237): Fixed imports --- components/Current/Header/index.tsx | 1 + cypress/support/component.ts | 1 - server/routers/contentstack/myPages/index.ts | 5 +++-- server/transformer.ts | 1 + types/components/current/asides/puffs.ts | 2 +- 5 files changed, 6 insertions(+), 4 deletions(-) diff --git a/components/Current/Header/index.tsx b/components/Current/Header/index.tsx index ad3ce1eb0..c63b90d28 100644 --- a/components/Current/Header/index.tsx +++ b/components/Current/Header/index.tsx @@ -1,6 +1,7 @@ import { homeHrefs } from "@/constants/homeHrefs" import { env } from "@/env/server" import { serverClient } from "@/lib/trpc/server" + import { getLang } from "@/i18n/serverContext" import { MainMenu } from "./MainMenu" diff --git a/cypress/support/component.ts b/cypress/support/component.ts index d308632d2..853685310 100644 --- a/cypress/support/component.ts +++ b/cypress/support/component.ts @@ -18,7 +18,6 @@ import "./commands" // Alternatively you can use CommonJS syntax: // require('./commands') - import { mount } from "cypress/react18" // Augment the Cypress namespace to include type definitions for diff --git a/server/routers/contentstack/myPages/index.ts b/server/routers/contentstack/myPages/index.ts index 8b5cdcd71..2b1e07f4e 100644 --- a/server/routers/contentstack/myPages/index.ts +++ b/server/routers/contentstack/myPages/index.ts @@ -1,5 +1,6 @@ -import { router } from "@/server/trpc"; -import { navigationRouter } from "./navigation"; +import { router } from "@/server/trpc" + +import { navigationRouter } from "./navigation" export const myPagesRouter = router({ navigation: navigationRouter, diff --git a/server/transformer.ts b/server/transformer.ts index 0d8d72aeb..b30080513 100644 --- a/server/transformer.ts +++ b/server/transformer.ts @@ -1,2 +1,3 @@ import superjson from "superjson" + export const transformer = superjson diff --git a/types/components/current/asides/puffs.ts b/types/components/current/asides/puffs.ts index 9a1691b91..07198d912 100644 --- a/types/components/current/asides/puffs.ts +++ b/types/components/current/asides/puffs.ts @@ -1,5 +1,5 @@ -import type { Node } from "@/types/requests/utils/edges" import type { Puff } from "@/types/requests/puff" +import type { Node } from "@/types/requests/utils/edges" export type PuffsProps = { puffs: Node[]