mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
refactor
This commit is contained in:
@@ -124,8 +124,7 @@
|
||||
creditList={data?.creditList}
|
||||
members={data?.members}
|
||||
currentPlan={data?.aggregationBillingPlan}
|
||||
currentInvoice={data?.billingInvoice}
|
||||
invoices={data?.invoices.invoices} />
|
||||
currentInvoice={data?.billingInvoice} />
|
||||
<PaymentHistory />
|
||||
<PaymentMethods />
|
||||
<BillingAddress billingAddress={data?.billingAddress} />
|
||||
|
||||
@@ -36,7 +36,6 @@ export const load: PageLoad = async ({ parent, depends }) => {
|
||||
aggregationList,
|
||||
billingAddress,
|
||||
creditList,
|
||||
invoices,
|
||||
aggregationBillingPlan,
|
||||
billingInvoice,
|
||||
] = await Promise.all([
|
||||
@@ -45,10 +44,6 @@ export const load: PageLoad = async ({ parent, depends }) => {
|
||||
sdk.forConsole.billing.listAggregation(organization.$id),
|
||||
billingAddressPromise,
|
||||
sdk.forConsole.billing.listCredits(organization.$id),
|
||||
sdk.forConsole.billing.listInvoices(organization.$id, [
|
||||
Query.limit(1),
|
||||
Query.equal('from', organization.billingCurrentInvoiceDate)
|
||||
]),
|
||||
sdk.forConsole.billing.getPlan(billingAggregation.plan),
|
||||
sdk.forConsole.billing.getInvoice(organization.$id, billingInvoiceId)
|
||||
]);
|
||||
@@ -60,7 +55,6 @@ export const load: PageLoad = async ({ parent, depends }) => {
|
||||
billingAddress,
|
||||
aggregationBillingPlan,
|
||||
creditList,
|
||||
invoices,
|
||||
billingAggregation,
|
||||
billingInvoice
|
||||
};
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
import { CardGrid, Collapsible, CollapsibleItem, Heading } from '$lib/components';
|
||||
import { Button } from '$lib/elements/forms';
|
||||
import { toLocaleDate } from '$lib/helpers/date';
|
||||
import { plansInfo, tierToPlan, upgradeURL } from '$lib/stores/billing';
|
||||
import { plansInfo, upgradeURL } from '$lib/stores/billing';
|
||||
import { organization } from '$lib/stores/organization';
|
||||
import type { CreditList, Invoice, Plan } from '$lib/sdk/billing';
|
||||
import { abbreviateNumber, formatCurrency, formatNumberWithCommas } from '$lib/helpers/numbers';
|
||||
@@ -13,7 +13,6 @@
|
||||
import { tooltip } from '$lib/actions/tooltip';
|
||||
import { type Models } from '@appwrite.io/console';
|
||||
|
||||
export let invoices: Array<Invoice>;
|
||||
export let members: Models.MembershipList;
|
||||
export let currentPlan: Plan;
|
||||
export let creditList: CreditList;
|
||||
|
||||
Reference in New Issue
Block a user