refactor: dashboard usage

This commit is contained in:
jialin
2026-05-06 12:27:22 +08:00
committed by jialin
parent 705b33e307
commit 898c7f1be2
23 changed files with 901 additions and 35 deletions
+2 -13
View File
@@ -1,18 +1,7 @@
import breakpoints from '@/config/breakpoints';
import useWindowResize from '@/hooks/use-window-resize';
import { useEffect, useState } from 'react';
import UserInner from './usage-inner';
import NewUsage from './new-usage';
const Usage = () => {
const {
size: { width }
} = useWindowResize();
const [maxWdith, setMaxWidth] = useState<number>(breakpoints.xl);
useEffect(() => {
setMaxWidth(width);
}, [width]);
return <UserInner maxWidth={maxWdith}></UserInner>;
return <NewUsage />;
};
export default Usage;