chore: fix ci problem

This commit is contained in:
moonrailgun 2024-02-12 00:39:22 +08:00
parent bf6b121041
commit 0f7b11d842
2 changed files with 8 additions and 5 deletions

View File

@ -5,6 +5,7 @@ import { AppRouterOutput, trpc } from '../../api/trpc';
import { useCurrentWorkspaceId } from '../../store/user';
import { sum } from 'lodash-es';
import { formatNumber } from '../../utils/common';
import { useTranslation } from '@i18next-toolkit/react';
type MetricsItemType = AppRouterOutput['website']['metrics'][number];
@ -24,8 +25,9 @@ interface MetricsTableProps {
endAt: number;
}
export const MetricsTable: React.FC<MetricsTableProps> = React.memo((props) => {
const workspaceId = useCurrentWorkspaceId();
const { websiteId, title, type, startAt, endAt } = props;
const workspaceId = useCurrentWorkspaceId();
const { t } = useTranslation();
const { isLoading, data: metrics = [] } = trpc.website.metrics.useQuery({
workspaceId,

View File

@ -1,6 +1,5 @@
import type { I18nextToolkitConfig } from '@i18next-toolkit/cli';
export default {
/** @type {import('@i18next-toolkit/cli').I18nextToolkitConfig} */
const config = {
locales: ['en', 'zh', 'jp', 'fr', 'de', 'ru'],
scanner: {
verbose: false,
@ -41,4 +40,6 @@ export default {
'YYYY-MM-DD HH:mm',
],
},
} satisfies I18nextToolkitConfig;
};
module.exports = config;