diff --git a/.changeset/famous-donuts-bake.md b/.changeset/famous-donuts-bake.md new file mode 100644 index 000000000000..920dad2fc93d --- /dev/null +++ b/.changeset/famous-donuts-bake.md @@ -0,0 +1,5 @@ +--- +"@refinedev/core": patch +--- + +AuthPage in Next.js generates code with i18n but the folder hooks is not created. imported useTranslate from @hooks to fix the issue diff --git a/packages/core/src/components/pages/auth/components/login/index.tsx b/packages/core/src/components/pages/auth/components/login/index.tsx index 90daab4e2bc4..2a50ad4ea8a4 100644 --- a/packages/core/src/components/pages/auth/components/login/index.tsx +++ b/packages/core/src/components/pages/auth/components/login/index.tsx @@ -1,8 +1,13 @@ import React, { useState } from "react"; import { useActiveAuthProvider } from "@definitions/helpers"; -import { useLink, useLogin, useRouterContext, useRouterType } from "@hooks"; -import { useTranslate } from "@hooks/i18n"; +import { + useLink, + useLogin, + useRouterContext, + useRouterType, + useTranslate, +} from "@hooks"; import type { DivPropsType, FormPropsType } from "../.."; import type { LoginFormTypes, LoginPageProps } from "../../types";