Updated client packages
This commit is contained in:
@@ -15,7 +15,8 @@ import { useTranslation } from "react-i18next";
|
||||
import { BrowserRouter, Outlet, Route, Routes } from "react-router-dom";
|
||||
import { Header } from "./components/header";
|
||||
import { ColorModeContextProvider } from "./contexts/color-mode";
|
||||
import { ReactComponent as Logo } from "./icon.svg";
|
||||
// @ts-expect-error: svg file
|
||||
import Logo from "./icon.svg?react";
|
||||
import { FileOutlined, HighlightOutlined, UserOutlined } from "@ant-design/icons";
|
||||
import { ConfigProvider } from "antd";
|
||||
import { Footer } from "antd/es/layout/layout";
|
||||
@@ -41,7 +42,7 @@ function App() {
|
||||
const { t, i18n } = useTranslation();
|
||||
|
||||
const i18nProvider = {
|
||||
translate: (key: string, params: object) => t(key, params),
|
||||
translate: (key: string, params?: never) => t(key, params),
|
||||
changeLocale: (lang: string) => i18n.changeLanguage(lang),
|
||||
getLocale: () => i18n.language,
|
||||
};
|
||||
|
||||
@@ -9,7 +9,8 @@ import dayjs from "dayjs";
|
||||
import utc from "dayjs/plugin/utc";
|
||||
import { DateField, TextField } from "@refinedev/antd";
|
||||
import Icon from "@ant-design/icons";
|
||||
import { ReactComponent as SpoolIcon } from "../icon_spool.svg";
|
||||
// @ts-expect-error: svg file
|
||||
import SpoolIcon from "../icon_spool.svg?react";
|
||||
import { useTranslate } from "@refinedev/core";
|
||||
import { enrichText } from "../utils/parsing";
|
||||
import { UseQueryResult } from "@tanstack/react-query";
|
||||
|
||||
Reference in New Issue
Block a user