Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

misc: use Table component for Coupons list #1962

Merged
merged 1 commit into from
Jan 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
220 changes: 0 additions & 220 deletions src/components/coupons/CouponItem.tsx

This file was deleted.

38 changes: 19 additions & 19 deletions src/generated/graphql.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6443,8 +6443,6 @@ export type CouponCaptionFragment = { __typename?: 'Coupon', id: string, amountC

export type AppliedCouponCaptionFragment = { __typename?: 'AppliedCoupon', id: string, amountCurrency?: CurrencyEnum | null, amountCents?: any | null, amountCentsRemaining?: any | null, percentageRate?: number | null, frequency: CouponFrequency, frequencyDuration?: number | null, frequencyDurationRemaining?: number | null };

export type CouponItemFragment = { __typename?: 'Coupon', id: string, name: string, customersCount: number, status: CouponStatusEnum, amountCurrency?: CurrencyEnum | null, amountCents?: any | null, appliedCouponsCount: number, expiration: CouponExpiration, expirationAt?: any | null, couponType: CouponTypeEnum, percentageRate?: number | null, frequency: CouponFrequency, frequencyDuration?: number | null };

export type DeleteCouponFragment = { __typename?: 'Coupon', id: string, name: string };

export type DeleteCouponMutationVariables = Exact<{
Expand Down Expand Up @@ -8410,6 +8408,8 @@ export type GetCouponForDetailsQueryVariables = Exact<{

export type GetCouponForDetailsQuery = { __typename?: 'Query', coupon?: { __typename?: 'Coupon', id: string, amountCents?: any | null, amountCurrency?: CurrencyEnum | null, percentageRate?: number | null, code?: string | null, expirationAt?: any | null, name: string, frequency: CouponFrequency, reusable: boolean, couponType: CouponTypeEnum, billableMetrics?: Array<{ __typename?: 'BillableMetric', id: string, name: string }> | null, plans?: Array<{ __typename?: 'Plan', id: string, name: string }> | null } | null };

export type CouponItemFragment = { __typename?: 'Coupon', id: string, name: string, customersCount: number, status: CouponStatusEnum, amountCurrency?: CurrencyEnum | null, amountCents?: any | null, appliedCouponsCount: number, expiration: CouponExpiration, expirationAt?: any | null, couponType: CouponTypeEnum, percentageRate?: number | null, frequency: CouponFrequency, frequencyDuration?: number | null };

export type CouponsQueryVariables = Exact<{
page?: InputMaybe<Scalars['Int']['input']>;
limit?: InputMaybe<Scalars['Int']['input']>;
Expand Down Expand Up @@ -9203,23 +9203,6 @@ export const CouponCaptionFragmentDoc = gql`
frequencyDuration
}
`;
export const CouponItemFragmentDoc = gql`
fragment CouponItem on Coupon {
id
name
customersCount
status
amountCurrency
amountCents
appliedCouponsCount
expiration
expirationAt
couponType
percentageRate
frequency
frequencyDuration
}
`;
export const DeleteCouponFragmentDoc = gql`
fragment DeleteCoupon on Coupon {
id
Expand Down Expand Up @@ -11231,6 +11214,23 @@ export const BillableMetricItemFragmentDoc = gql`
createdAt
}
`;
export const CouponItemFragmentDoc = gql`
fragment CouponItem on Coupon {
id
name
customersCount
status
amountCurrency
amountCents
appliedCouponsCount
expiration
expirationAt
couponType
percentageRate
frequency
frequencyDuration
}
`;
export const EditBillableMetricFragmentDoc = gql`
fragment EditBillableMetric on BillableMetric {
id
Expand Down
Loading
Loading