chore: Removed UsageList component
This commit is contained in:
parent
68d8a3030b
commit
1dc0a8abf5
|
@ -8,14 +8,6 @@ interface UsageCardProps {
|
|||
icon: React.ReactNode
|
||||
}
|
||||
|
||||
export const UsageList = ({ children }: React.PropsWithChildren<{}>) => {
|
||||
return (
|
||||
<div className="grid grid-cols-2 gap-8 flex-wrap w-full">
|
||||
{children}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export const UsageCard = ({ usageName, monthlyUsage, currentUsage, icon }: UsageCardProps) => {
|
||||
return (
|
||||
<div className="p-8 border rounded-lg w-full">
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { GeneralLayout } from "~/components/general-layout";
|
||||
import { UpgradeAccountBanner } from "~/components/upgrade-account-banner";
|
||||
import { UsageCard, UsageList } from "~/components/usage-card";
|
||||
import { UsageCard } from "~/components/usage-card";
|
||||
import { UsageChart } from "~/components/usage-chart";
|
||||
|
||||
export default function Dashboard() {
|
||||
|
@ -14,7 +14,7 @@ export default function Dashboard() {
|
|||
<h1 className="font-bold mb-4 text-lg">Dashboard</h1>
|
||||
<UpgradeAccountBanner />
|
||||
<h2 className="font-bold mb-8 mt-10">Current Usage</h2>
|
||||
<UsageList>
|
||||
<div className="grid grid-cols-2 gap-8">
|
||||
<UsageCard
|
||||
usageName="Storage"
|
||||
currentUsage={120}
|
||||
|
@ -33,7 +33,7 @@ export default function Dashboard() {
|
|||
monthlyUsage={15}
|
||||
icon={<CloudUploadIcon className="text-ring" />}
|
||||
/>
|
||||
</UsageList>
|
||||
</div>
|
||||
<h2 className="font-bold mb-8 mt-10">Historical Usage</h2>
|
||||
<div className="grid gap-8 grid-cols-2">
|
||||
<UsageChart
|
||||
|
|
Loading…
Reference in New Issue