♻️Refactor: Token Page

This commit is contained in:
Apple\Apple
2025-05-23 00:24:08 +08:00
parent 0f3216564d
commit 67a65213d8
5 changed files with 630 additions and 423 deletions

View File

@@ -1,24 +1,11 @@
import React from 'react';
import TokensTable from '../../components/TokensTable';
import { Banner, Layout } from '@douyinfe/semi-ui';
import { useTranslation } from 'react-i18next';
const Token = () => {
const { t } = useTranslation();
return (
<>
<Layout>
<Layout.Header>
<Banner
type='warning'
description={t(
'令牌无法精确控制使用额度,只允许自用,请勿直接将令牌分发给他人。',
)}
/>
</Layout.Header>
<Layout.Content>
<TokensTable />
</Layout.Content>
</Layout>
<TokensTable />
</>
);
};