mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
feat(frontend): typed react i18next
This commit is contained in:
@@ -7,11 +7,12 @@
|
||||
*/
|
||||
|
||||
import { Controller, useFormContext } from "react-hook-form";
|
||||
import { useTranslation } from "react-i18next";
|
||||
|
||||
|
||||
import { ContentItem } from "@/app-components/dialogs";
|
||||
import MultipleInput from "@/app-components/inputs/MultipleInput";
|
||||
import SimpleTextIcon from "@/app-components/svg/toolbar/SimpleTextIcon";
|
||||
import { useTranslate } from "@/hooks/useTranslate";
|
||||
import { IBlockAttributes } from "@/types/block.types";
|
||||
|
||||
import { useBlock } from "./BlockFormProvider";
|
||||
@@ -20,7 +21,7 @@ import ReplacementTokens from "./inputs/ReplacementTokens";
|
||||
|
||||
const TextMessageForm = () => {
|
||||
const block = useBlock();
|
||||
const { t } = useTranslation();
|
||||
const { t } = useTranslate();
|
||||
const {
|
||||
control,
|
||||
register,
|
||||
|
||||
Reference in New Issue
Block a user