Skip to content

Commit

Permalink
fix(core): useTranslate to import from @hooks in auth login page (#6184)
Browse files Browse the repository at this point in the history
Co-authored-by: Sarfraz Alam <[email protected]>
Co-authored-by: Batuhan Wilhelm <[email protected]>
  • Loading branch information
3 people authored Jul 25, 2024
1 parent 61aa346 commit 1f7976b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/famous-donuts-bake.md
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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";
Expand Down

0 comments on commit 1f7976b

Please sign in to comment.