Skip to content

Commit 989f492

Browse files
committed
cleanup unused
1 parent 4c8333d commit 989f492

File tree

2 files changed

+0
-38
lines changed
  • apps/dashboard/src
    • @3rdweb-sdk/react/hooks
    • app/team/[team_slug]/(team)/~/usage/overview/components

2 files changed

+0
-38
lines changed

apps/dashboard/src/@3rdweb-sdk/react/hooks/useApi.ts

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ export const accountPlan = {
2929
enterprise: "enterprise",
3030
} as const;
3131

32-
type AccountStatus = (typeof accountStatus)[keyof typeof accountStatus];
33-
type AccountPlan = (typeof accountPlan)[keyof typeof accountPlan];
34-
3532
export type AuthorizedWallet = {
3633
id: string;
3734
accountId: string;
@@ -47,30 +44,17 @@ export type Account = {
4744
id: string;
4845
isStaff: boolean;
4946
creatorWalletAddress: string;
50-
status: AccountStatus;
51-
plan: AccountPlan;
5247
name?: string;
5348
email?: string;
5449
advancedEnabled: boolean;
55-
currentBillingPeriodStartsAt: string;
56-
currentBillingPeriodEndsAt: string;
5750
emailConfirmedAt?: string;
5851
unconfirmedEmail?: string;
59-
trialPeriodEndedAt?: string;
6052
emailConfirmationWalletAddress?: string;
61-
stripePaymentActionUrl?: string;
6253
onboardSkipped?: boolean;
63-
paymentAttemptCount?: number;
6454
notificationPreferences?: {
6555
billing: "email" | "none";
6656
updates: "email" | "none";
6757
};
68-
recurringPaymentFailures: {
69-
subscriptionId: string;
70-
subscriptionDescription: string;
71-
paymentFailureCode: string;
72-
serviceCutoffDate: string;
73-
}[];
7458
// TODO - add image URL
7559
};
7660

@@ -194,33 +178,16 @@ export interface UpdateKeyInput {
194178
redirectUrls: string[];
195179
}
196180

197-
interface UsageBundler {
198-
chainId: number;
199-
sumTransactionFee: string;
200-
}
201-
202181
interface UsageStorage {
203182
sumFileSizeBytes: number;
204183
}
205184

206-
interface UsageEmbeddedWallets {
207-
countWalletAddresses: number;
208-
}
209-
210185
export interface UsageBillableByService {
211186
usage: {
212-
bundler: UsageBundler[];
213187
storage: UsageStorage;
214-
embeddedWallets: UsageEmbeddedWallets;
215-
};
216-
billableUsd: {
217-
bundler: number;
218-
storage: number;
219-
embeddedWallets: number;
220188
};
221189
limits: {
222190
storage: number;
223-
embeddedWallets: number;
224191
};
225192
rateLimits: {
226193
storage: number;

apps/dashboard/src/app/team/[team_slug]/(team)/~/usage/overview/components/Usage.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,6 @@ export const Usage: React.FC<UsageProps> = ({
4141
return {
4242
total: `${toSize(Math.min(consumedBytes, limitBytes), "MB")} of ${toSize(limitBytes)} included storage used`,
4343
progress: percent,
44-
...(usageData.billableUsd.storage > 0
45-
? {
46-
overage: usageData.billableUsd.storage,
47-
}
48-
: {}),
4944
totalUsage: `Total Usage: ${toSize(consumedBytes, "MB")}`,
5045
};
5146
}, [usageData]);

0 commit comments

Comments
 (0)