style: set theme token

This commit is contained in:
jialin
2025-03-27 18:32:44 +08:00
parent 8d444f24f8
commit db417e6a5f
22 changed files with 142 additions and 102 deletions
@@ -4,7 +4,7 @@ import { useIntl } from '@umijs/max';
import { Col, Row } from 'antd';
import dayjs from 'dayjs';
import _ from 'lodash';
import { memo, useCallback, useContext, useEffect, useState } from 'react';
import { FC, memo, useCallback, useContext, useEffect, useState } from 'react';
import { DashboardContext } from '../../config/dashboard-context';
import RequestTokenInner from './request-token-inner';
import TopUser from './top-user';
@@ -31,7 +31,7 @@ const getCurrentMonthDays = () => {
return dates;
};
const UsageInner: React.FC<{ paddingRight: string }> = ({ paddingRight }) => {
const UsageInner: FC<{ paddingRight: string }> = ({ paddingRight }) => {
const intl = useIntl();
const [topUserData, setTopUserData] = useState<{
@@ -191,7 +191,11 @@ const UsageInner: React.FC<{ paddingRight: string }> = ({ paddingRight }) => {
<>
<PageTools
style={{ margin: '26px 0px' }}
left={<span>{intl.formatMessage({ id: 'dashboard.usage' })}</span>}
left={
<span className="font-700">
{intl.formatMessage({ id: 'dashboard.usage' })}
</span>
}
/>
<Row style={{ width: '100%' }} gutter={[0, 20]}>
<Col