diff --git a/apps/dcellar-web-ui/src/components/formitems/QuotaItem.tsx b/apps/dcellar-web-ui/src/components/formitems/QuotaItem.tsx index 8cad654a..54a433c1 100644 --- a/apps/dcellar-web-ui/src/components/formitems/QuotaItem.tsx +++ b/apps/dcellar-web-ui/src/components/formitems/QuotaItem.tsx @@ -118,7 +118,6 @@ export const QuotaItem = memo(function QuotaItem({ const price = useMemo(() => { return BN(readPrice) - .div(10 ** 18) .times(G_BYTES) .times(2_592_000) .div(10 ** 18) diff --git a/apps/dcellar-web-ui/src/modules/dashboard/index.tsx b/apps/dcellar-web-ui/src/modules/dashboard/index.tsx index 181cf32a..2cda7460 100644 --- a/apps/dcellar-web-ui/src/modules/dashboard/index.tsx +++ b/apps/dcellar-web-ui/src/modules/dashboard/index.tsx @@ -11,14 +11,18 @@ import { setupAllCostTrend, setupTotalCost } from '@/store/slices/billing'; import { useMount } from 'ahooks'; import { setupBuckets } from '@/store/slices/bucket'; import { setupBucketDailyStorage } from '@/store/slices/dashboard'; -import Link from 'next/link'; import { getCurMonthDetailUrl } from '@/utils/accounts'; +import { useRouter } from 'next/router'; export const Dashboard = () => { const dispatch = useAppDispatch(); const { loginAccount } = useAppSelector((root) => root.persist); const [isLessThan1200] = useMediaQuery('(max-width: 1200px)'); const curMonthDetailUrl = getCurMonthDetailUrl(); + const router = useRouter(); + const onNavigate = (path: string) => { + router.push(path); + }; useMount(async () => { dispatch(setupOwnerAccount()); dispatch(setupTotalCost()); @@ -36,12 +40,17 @@ export const Dashboard = () => { - - - - - - + onNavigate(curMonthDetailUrl)} + cursor={'pointer'} + /> + onNavigate(curMonthDetailUrl)} + cursor={'pointer'} + /> {isLessThan1200 && (