feat: refresh max token

This commit is contained in:
archer
2023-07-14 10:05:29 +08:00
parent f3715731c4
commit 358c4716f9
7 changed files with 83 additions and 27 deletions

View File

@@ -14,8 +14,8 @@ import Avatar from '@/components/Avatar';
import MyIcon from '@/components/Icon';
const InfoModal = dynamic(() => import('./InfoModal'));
const TokenUsage = dynamic(() => import('./Charts/TokenUsage'));
const AppEdit = dynamic(() => import('./edit'));
const TotalUsage = dynamic(() => import('./Charts/TotalUsage'), { ssr: false });
const AppEdit = dynamic(() => import('./edit'), { ssr: false });
import styles from '../../list/index.module.scss';
const Settings = ({ appId }: { appId: string }) => {
@@ -143,10 +143,10 @@ const Settings = ({ appId }: { appId: string }) => {
</Box>
<Box>
<Box mb={2} fontSize={['md', 'xl']}>
7 Tokens
7
</Box>
<Box h={'150px'}>
<TokenUsage appId={appId} />
<Box h={'150px'} w={'100%'}>
<TotalUsage appId={appId} />
</Box>
</Box>
</Grid>