chore: fix ci problem
This commit is contained in:
parent
bf6b121041
commit
0f7b11d842
@ -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,
|
||||
|
@ -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;
|
Loading…
Reference in New Issue
Block a user