Skip to content

Commit

Permalink
misc: use Table component for Coupons list
Browse files Browse the repository at this point in the history
  • Loading branch information
ansmonjol committed Jan 2, 2025
1 parent df0548f commit be961ff
Show file tree
Hide file tree
Showing 3 changed files with 254 additions and 384 deletions.
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

0 comments on commit be961ff

Please sign in to comment.