feat: use i18next

This commit is contained in:
Steven
2022-09-19 22:27:50 +08:00
parent 307483e499
commit 366afdd1e4
39 changed files with 133 additions and 232 deletions

View File

@ -1,5 +1,5 @@
import { useTranslation } from "react-i18next";
import * as utils from "../helpers/utils";
import useI18n from "../hooks/useI18n";
import useToggle from "../hooks/useToggle";
import { memoService } from "../services";
import toastHelper from "./Toast";
@ -18,7 +18,7 @@ const ArchivedMemo: React.FC<Props> = (props: Props) => {
createdAtStr: utils.getDateTimeString(propsMemo.createdTs),
archivedAtStr: utils.getDateTimeString(propsMemo.updatedTs ?? Date.now()),
};
const { t } = useI18n();
const { t } = useTranslation();
const [showConfirmDeleteBtn, toggleConfirmDeleteBtn] = useToggle(false);