app phone ui

This commit is contained in:
archer
2023-07-14 12:06:54 +08:00
parent 5a96e167ee
commit 077ee9504f
5 changed files with 47 additions and 54 deletions

View File

@@ -5,6 +5,8 @@ import { getAppTotalUsage } from '@/api/app';
import { useQuery } from '@tanstack/react-query';
import dayjs from 'dayjs';
import { formatPrice } from '@/utils/user';
import Loading from '@/components/Loading';
import { Box } from '@chakra-ui/react';
const map = {
blue: {
@@ -185,7 +187,11 @@ const TokenUsage = ({ appId }: { appId: string }) => {
myChart.current.resize();
}, [screenWidth]);
return <div ref={Dom} style={{ width: '100%', height: '100%' }} />;
return (
<Box ref={Dom} w={'100%'} h={'100%'} position={'relative'}>
<Loading fixed={false} />
</Box>
);
};
export default React.memo(TokenUsage);