Skip to content

Commit

Permalink
misc: move integration tabs options to a const file
Browse files Browse the repository at this point in the history
  • Loading branch information
ansmonjol committed Jan 13, 2025
1 parent 0ffaace commit b76b6e2
Show file tree
Hide file tree
Showing 48 changed files with 75 additions and 81 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
} from '~/components/designSystem'
import { TimezoneDate } from '~/components/TimezoneDate'
import { addToast } from '~/core/apolloClient'
import { CustomerSubscriptionDetailsTabsOptionsEnum } from '~/core/constants/tabsOptions'
import {
CUSTOMER_SUBSCRIPTION_DETAILS_ROUTE,
UPDATE_SUBSCRIPTION,
Expand All @@ -24,7 +25,6 @@ import { copyToClipboard } from '~/core/utils/copyToClipboard'
import { StatusTypeEnum, SubscriptionLinePlanFragment, TimezoneEnum } from '~/generated/graphql'
import { useInternationalization } from '~/hooks/core/useInternationalization'
import { usePermissions } from '~/hooks/usePermissions'
import { CustomerSubscriptionDetailsTabsOptionsEnum } from '~/pages/SubscriptionDetails'
import { ItemContainer, ListItemLink, MenuPopper, NAV_HEIGHT, PopperOpener, theme } from '~/styles'

import { TerminateCustomerSubscriptionDialogRef } from './TerminateCustomerSubscriptionDialog'
Expand Down
1 change: 1 addition & 0 deletions src/components/invoices/InvoicesList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import { VoidInvoiceDialog, VoidInvoiceDialogRef } from '~/components/invoices/V
import { addToast, hasDefinedGQLError } from '~/core/apolloClient'
import { CustomerInvoiceDetailsTabsOptionsEnum } from '~/core/constants/NavigationEnum'
import { invoiceStatusMapping, paymentStatusMapping } from '~/core/constants/statusInvoiceMapping'
import { CustomerInvoiceDetailsTabsOptionsEnum } from '~/core/constants/tabsOptions'
import { intlFormatNumber } from '~/core/formats/intlFormatNumber'
import {
CUSTOMER_INVOICE_CREATE_CREDIT_NOTE_ROUTE,
Expand Down
2 changes: 1 addition & 1 deletion src/components/plans/details/PlanSubscriptionListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import styled, { css } from 'styled-components'

import { computeCustomerInitials } from '~/components/customers/utils'
import { Avatar, Skeleton, Typography } from '~/components/designSystem'
import { CustomerSubscriptionDetailsTabsOptionsEnum } from '~/core/constants/tabsOptions'
import { PLAN_SUBSCRIPTION_DETAILS_ROUTE } from '~/core/router'
import { PlanSubscriptionListItemForSubscriptionListFragment } from '~/generated/graphql'
import { useInternationalization } from '~/hooks/core/useInternationalization'
import { CustomerSubscriptionDetailsTabsOptionsEnum } from '~/pages/SubscriptionDetails'
import { ListItemLink, NAV_HEIGHT, theme } from '~/styles'

gql`
Expand Down
2 changes: 1 addition & 1 deletion src/components/settings/integrations/AddAdyenDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { object, string } from 'yup'
import { Button, Dialog, DialogRef } from '~/components/designSystem'
import { TextInputField } from '~/components/form'
import { addToast } from '~/core/apolloClient'
import { IntegrationsTabsOptionsEnum } from '~/core/constants/tabsOptions'
import { ADYEN_INTEGRATION_DETAILS_ROUTE } from '~/core/router'
import {
AddAdyenPaymentProviderInput,
Expand All @@ -21,7 +22,6 @@ import {
useUpdateAdyenApiKeyMutation,
} from '~/generated/graphql'
import { useInternationalization } from '~/hooks/core/useInternationalization'
import { IntegrationsTabsOptionsEnum } from '~/pages/settings/Integrations'
import { theme } from '~/styles'

import { DeleteAdyenIntegrationDialogRef } from './DeleteAdyenIntegrationDialog'
Expand Down
2 changes: 1 addition & 1 deletion src/components/settings/integrations/AddAnrokDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { object, string } from 'yup'
import { Button, Dialog, DialogRef } from '~/components/designSystem'
import { TextInputField } from '~/components/form'
import { addToast, envGlobalVar, hasDefinedGQLError } from '~/core/apolloClient'
import { IntegrationsTabsOptionsEnum } from '~/core/constants/tabsOptions'
import { ANROK_INTEGRATION_DETAILS_ROUTE } from '~/core/router'
import {
AddAnrokIntegrationDialogFragment,
Expand All @@ -23,7 +24,6 @@ import {
} from '~/generated/graphql'
import { useInternationalization } from '~/hooks/core/useInternationalization'
import { AnrokIntegrationDetailsTabs } from '~/pages/settings/AnrokIntegrationDetails'
import { IntegrationsTabsOptionsEnum } from '~/pages/settings/Integrations'
import { theme } from '~/styles'

import { DeleteAnrokIntegrationDialogRef } from './DeleteAnrokIntegrationDialog'
Expand Down
2 changes: 1 addition & 1 deletion src/components/settings/integrations/AddCashfreeDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { object, string } from 'yup'
import { Button, Dialog, DialogRef } from '~/components/designSystem'
import { TextInputField } from '~/components/form'
import { addToast } from '~/core/apolloClient'
import { IntegrationsTabsOptionsEnum } from '~/core/constants/tabsOptions'
import { CASHFREE_INTEGRATION_DETAILS_ROUTE } from '~/core/router'
import {
AddCashfreePaymentProviderInput,
Expand All @@ -20,7 +21,6 @@ import {
useUpdateCashfreeApiKeyMutation,
} from '~/generated/graphql'
import { useInternationalization } from '~/hooks/core/useInternationalization'
import { IntegrationsTabsOptionsEnum } from '~/pages/settings/Integrations'

import { DeleteCashfreeIntegrationDialogRef } from './DeleteCashfreeIntegrationDialog'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { Button, Dialog, DialogRef } from '~/components/designSystem'
import { TextInputField } from '~/components/form'
import { addToast, envGlobalVar } from '~/core/apolloClient'
import { buildGocardlessAuthUrl } from '~/core/constants/externalUrls'
import { IntegrationsTabsOptionsEnum } from '~/core/constants/tabsOptions'
import { GOCARDLESS_INTEGRATION_DETAILS_ROUTE } from '~/core/router'
import {
AddGocardlessPaymentProviderInput,
Expand All @@ -21,7 +22,6 @@ import {
useUpdateGocardlessApiKeyMutation,
} from '~/generated/graphql'
import { useInternationalization } from '~/hooks/core/useInternationalization'
import { IntegrationsTabsOptionsEnum } from '~/pages/settings/Integrations'
import { theme } from '~/styles'

import { DeleteGocardlessIntegrationDialogRef } from './DeleteGocardlessIntegrationDialog'
Expand Down
2 changes: 1 addition & 1 deletion src/components/settings/integrations/AddHubspotDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { Checkbox, CheckboxField, ComboBoxField, TextInputField } from '~/compon
import { DeleteHubspotIntegrationDialogRef } from '~/components/settings/integrations/DeleteHubspotIntegrationDialog'
import { addToast, envGlobalVar, hasDefinedGQLError } from '~/core/apolloClient'
import { getHubspotTargetedObjectTranslationKey } from '~/core/constants/form'
import { IntegrationsTabsOptionsEnum } from '~/core/constants/tabsOptions'
import { HUBSPOT_INTEGRATION_DETAILS_ROUTE } from '~/core/router'
import {
CreateHubspotIntegrationInput,
Expand All @@ -21,7 +22,6 @@ import {
useUpdateHubspotIntegrationMutation,
} from '~/generated/graphql'
import { useInternationalization } from '~/hooks/core/useInternationalization'
import { IntegrationsTabsOptionsEnum } from '~/pages/settings/Integrations'
import { tw } from '~/styles/utils'

gql`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { Alert, Button, Dialog, DialogRef, Typography } from '~/components/desig
import { ComboBoxField } from '~/components/form'
import { addToast } from '~/core/apolloClient'
import { LAGO_TAX_DOCUMENTATION_URL } from '~/core/constants/externalUrls'
import { IntegrationsTabsOptionsEnum } from '~/core/constants/tabsOptions'
import { countryDataForCombobox } from '~/core/formats/countryDataForCombobox'
import { TAX_MANAGEMENT_INTEGRATION_ROUTE } from '~/core/router'
import {
Expand All @@ -18,7 +19,6 @@ import {
} from '~/generated/graphql'
import { useInternationalization } from '~/hooks/core/useInternationalization'
import { useIntegrations } from '~/hooks/useIntegrations'
import { IntegrationsTabsOptionsEnum } from '~/pages/settings/Integrations'
import { theme } from '~/styles'

gql`
Expand Down
2 changes: 1 addition & 1 deletion src/components/settings/integrations/AddNetsuiteDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { boolean, object, string } from 'yup'
import { Alert, Button, Chip, Dialog, DialogRef, Typography } from '~/components/designSystem'
import { Checkbox, CheckboxField, TextInputField } from '~/components/form'
import { addToast, envGlobalVar, hasDefinedGQLError } from '~/core/apolloClient'
import { IntegrationsTabsOptionsEnum } from '~/core/constants/tabsOptions'
import { NETSUITE_INTEGRATION_DETAILS_ROUTE } from '~/core/router'
import {
CreateNetsuiteIntegrationInput,
Expand All @@ -20,7 +21,6 @@ import {
useUpdateNetsuiteIntegrationMutation,
} from '~/generated/graphql'
import { useInternationalization } from '~/hooks/core/useInternationalization'
import { IntegrationsTabsOptionsEnum } from '~/pages/settings/Integrations'
import { NetsuiteIntegrationDetailsTabs } from '~/pages/settings/NetsuiteIntegrationDetails'
import { theme } from '~/styles'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { object, string } from 'yup'
import { Alert, Button, Dialog, DialogRef } from '~/components/designSystem'
import { TextInputField } from '~/components/form'
import { addToast, hasDefinedGQLError } from '~/core/apolloClient'
import { IntegrationsTabsOptionsEnum } from '~/core/constants/tabsOptions'
import { SALESFORCE_INTEGRATION_DETAILS_ROUTE } from '~/core/router'
import {
CreateSalesforceIntegrationInput,
Expand All @@ -17,7 +18,6 @@ import {
useUpdateSalesforceIntegrationMutation,
} from '~/generated/graphql'
import { useInternationalization } from '~/hooks/core/useInternationalization'
import { IntegrationsTabsOptionsEnum } from '~/pages/settings/Integrations'
import { tw } from '~/styles/utils'

import { DeleteSalesforceIntegrationDialogRef } from './DeleteSalesforceIntegrationDialog'
Expand Down
2 changes: 1 addition & 1 deletion src/components/settings/integrations/AddStripeDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { object, string } from 'yup'
import { Button, Dialog, DialogRef } from '~/components/designSystem'
import { TextInputField } from '~/components/form'
import { addToast } from '~/core/apolloClient'
import { IntegrationsTabsOptionsEnum } from '~/core/constants/tabsOptions'
import { STRIPE_INTEGRATION_DETAILS_ROUTE } from '~/core/router'
import {
AddStripePaymentProviderInput,
Expand All @@ -21,7 +22,6 @@ import {
useUpdateStripeApiKeyMutation,
} from '~/generated/graphql'
import { useInternationalization } from '~/hooks/core/useInternationalization'
import { IntegrationsTabsOptionsEnum } from '~/pages/settings/Integrations'
import { theme } from '~/styles'

import { DeleteStripeIntegrationDialogRef } from './DeleteStripeIntegrationDialog'
Expand Down
2 changes: 1 addition & 1 deletion src/components/settings/integrations/AddXeroDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { boolean, object, string } from 'yup'
import { Alert, Button, Chip, Dialog, DialogRef, Typography } from '~/components/designSystem'
import { Checkbox, CheckboxField, TextInputField } from '~/components/form'
import { addToast, envGlobalVar, hasDefinedGQLError } from '~/core/apolloClient'
import { IntegrationsTabsOptionsEnum } from '~/core/constants/tabsOptions'
import { XERO_INTEGRATION_DETAILS_ROUTE } from '~/core/router'
import {
CreateXeroIntegrationInput,
Expand All @@ -20,7 +21,6 @@ import {
XeroForCreateDialogDialogFragment,
} from '~/generated/graphql'
import { useInternationalization } from '~/hooks/core/useInternationalization'
import { IntegrationsTabsOptionsEnum } from '~/pages/settings/Integrations'
import { XeroIntegrationDetailsTabs } from '~/pages/settings/XeroIntegrationDetails'
import { theme } from '~/styles'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import styled from 'styled-components'

import { Alert, Avatar, Button, Icon, Skeleton, Typography } from '~/components/designSystem'
import { addToast } from '~/core/apolloClient'
import { IntegrationsTabsOptionsEnum } from '~/core/constants/tabsOptions'
import {
ANROK_INTEGRATION_DETAILS_ROUTE,
ANROK_INTEGRATION_ROUTE,
Expand All @@ -20,7 +21,6 @@ import {
} from '~/generated/graphql'
import { useInternationalization } from '~/hooks/core/useInternationalization'
import { AnrokIntegrationDetailsTabs } from '~/pages/settings/AnrokIntegrationDetails'
import { IntegrationsTabsOptionsEnum } from '~/pages/settings/Integrations'
import { NAV_HEIGHT, theme } from '~/styles'

import { AddAnrokDialog, AddAnrokDialogRef } from './AddAnrokDialog'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { generatePath, useNavigate, useParams } from 'react-router-dom'
import styled from 'styled-components'

import { Alert, Avatar, Button, Icon, Skeleton, Typography } from '~/components/designSystem'
import { IntegrationsTabsOptionsEnum } from '~/core/constants/tabsOptions'
import {
INTEGRATIONS_ROUTE,
NETSUITE_INTEGRATION_DETAILS_ROUTE,
Expand All @@ -17,7 +18,6 @@ import {
useGetNetsuiteIntegrationsSettingsQuery,
} from '~/generated/graphql'
import { useInternationalization } from '~/hooks/core/useInternationalization'
import { IntegrationsTabsOptionsEnum } from '~/pages/settings/Integrations'
import { NetsuiteIntegrationDetailsTabs } from '~/pages/settings/NetsuiteIntegrationDetails'
import { NAV_HEIGHT, theme } from '~/styles'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { generatePath, useNavigate, useParams } from 'react-router-dom'
import styled from 'styled-components'

import { Alert, Avatar, Button, Icon, Skeleton, Typography } from '~/components/designSystem'
import { IntegrationsTabsOptionsEnum } from '~/core/constants/tabsOptions'
import {
INTEGRATIONS_ROUTE,
XERO_INTEGRATION_DETAILS_ROUTE,
Expand All @@ -17,7 +18,6 @@ import {
XeroIntegrationSettingsFragment,
} from '~/generated/graphql'
import { useInternationalization } from '~/hooks/core/useInternationalization'
import { IntegrationsTabsOptionsEnum } from '~/pages/settings/Integrations'
import { XeroIntegrationDetailsTabs } from '~/pages/settings/XeroIntegrationDetails'
import { NAV_HEIGHT, theme } from '~/styles'

Expand Down
2 changes: 1 addition & 1 deletion src/components/subscriptions/SubscriptionInformations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { DateTime } from 'luxon'
import { generatePath, Link } from 'react-router-dom'
import styled from 'styled-components'

import { PlanDetailsTabsOptionsEnum } from '~/core/constants/tabsOptions'
import { CUSTOMER_DETAILS_ROUTE, CUSTOMER_SUBSCRIPTION_PLAN_DETAILS } from '~/core/router'
import {
StatusTypeEnum,
SubscriptionForSubscriptionInformationsFragment,
} from '~/generated/graphql'
import { useInternationalization } from '~/hooks/core/useInternationalization'
import { useOrganizationInfos } from '~/hooks/useOrganizationInfos'
import { PlanDetailsTabsOptionsEnum } from '~/pages/PlanDetails'
import { theme } from '~/styles'
import { DetailsInfoGrid, DetailsInfoItem, DetailsSectionTitle } from '~/styles/detailsPage'

Expand Down
19 changes: 19 additions & 0 deletions src/core/constants/tabsOptions.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
export enum CustomerInvoiceDetailsTabsOptionsEnum {
overview = 'overview',
creditNotes = 'credit-notes',
}

export enum CustomerSubscriptionDetailsTabsOptionsEnum {
overview = 'overview',
usage = 'usage',
}

export enum IntegrationsTabsOptionsEnum {
Lago = 'lago',
Community = 'community',
}

export enum PlanDetailsTabsOptionsEnum {
overview = 'overview',
subscriptions = 'subscriptions',
}
2 changes: 1 addition & 1 deletion src/hooks/customer/useAddSubscription.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { PlanFormInput } from '~/components/plans/types'
import { REDIRECTION_ORIGIN_SUBSCRIPTION_USAGE } from '~/components/subscriptions/SubscriptionUsageLifetimeGraph'
import { addToast, hasDefinedGQLError } from '~/core/apolloClient'
import { FORM_TYPE_ENUM } from '~/core/constants/form'
import { CustomerSubscriptionDetailsTabsOptionsEnum } from '~/core/constants/tabsOptions'
import {
CUSTOMER_DETAILS_ROUTE,
CUSTOMER_SUBSCRIPTION_DETAILS_ROUTE,
Expand All @@ -25,7 +26,6 @@ import {
useUpdateSubscriptionMutation,
} from '~/generated/graphql'
import { useInternationalization } from '~/hooks/core/useInternationalization'
import { CustomerSubscriptionDetailsTabsOptionsEnum } from '~/pages/SubscriptionDetails'

import { useSalesForceConfig } from '../useSalesForceConfig'

Expand Down
6 changes: 4 additions & 2 deletions src/hooks/plans/usePlanForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ import {
useDuplicatePlanVar,
} from '~/core/apolloClient/reactiveVars/duplicatePlanVar'
import { FORM_ERRORS_ENUM, FORM_TYPE_ENUM } from '~/core/constants/form'
import {
CustomerSubscriptionDetailsTabsOptionsEnum,
PlanDetailsTabsOptionsEnum,
} from '~/core/constants/tabsOptions'
import {
CUSTOMER_SUBSCRIPTION_DETAILS_ROUTE,
ERROR_404_ROUTE,
Expand All @@ -36,8 +40,6 @@ import {
useGetSinglePlanQuery,
useUpdatePlanMutation,
} from '~/generated/graphql'
import { PlanDetailsTabsOptionsEnum } from '~/pages/PlanDetails'
import { CustomerSubscriptionDetailsTabsOptionsEnum } from '~/pages/SubscriptionDetails'

import { useInternationalization } from '../core/useInternationalization'
import { useOrganizationInfos } from '../useOrganizationInfos'
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { generatePath, Outlet } from 'react-router-dom'
import styled from 'styled-components'

import { Button, Typography, VerticalMenu } from '~/components/designSystem'
import { IntegrationsTabsOptionsEnum } from '~/core/constants/tabsOptions'
import {
AUTHENTICATION_ROUTE,
CREATE_DUNNING_ROUTE,
Expand All @@ -26,7 +27,6 @@ import {
import { useInternationalization } from '~/hooks/core/useInternationalization'
import { useLocationHistory } from '~/hooks/core/useLocationHistory'
import { usePermissions } from '~/hooks/usePermissions'
import { IntegrationsTabsOptionsEnum } from '~/pages/settings/Integrations'
import { theme } from '~/styles'

const NAV_WIDTH = 240
Expand Down
7 changes: 4 additions & 3 deletions src/pages/CreatePlan.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ import { REDIRECTION_ORIGIN_SUBSCRIPTION_USAGE } from '~/components/subscription
import { WarningDialog, WarningDialogRef } from '~/components/WarningDialog'
import { useDuplicatePlanVar } from '~/core/apolloClient'
import { FORM_TYPE_ENUM } from '~/core/constants/form'
import {
CustomerSubscriptionDetailsTabsOptionsEnum,
PlanDetailsTabsOptionsEnum,
} from '~/core/constants/tabsOptions'
import {
CUSTOMER_SUBSCRIPTION_DETAILS_ROUTE,
PLAN_DETAILS_ROUTE,
Expand All @@ -41,9 +45,6 @@ import { usePlanForm } from '~/hooks/plans/usePlanForm'
import { PageHeader } from '~/styles'
import { Content, Main, Side, SkeletonHeader } from '~/styles/mainObjectsForm'

import { PlanDetailsTabsOptionsEnum } from './PlanDetails'
import { CustomerSubscriptionDetailsTabsOptionsEnum } from './SubscriptionDetails'

gql`
fragment TaxForPlanAndChargesInPlanForm on Tax {
id
Expand Down
3 changes: 1 addition & 2 deletions src/pages/CreateSubscription.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ import { PremiumWarningDialog, PremiumWarningDialogRef } from '~/components/Prem
import { REDIRECTION_ORIGIN_SUBSCRIPTION_USAGE } from '~/components/subscriptions/SubscriptionUsageLifetimeGraph'
import { WarningDialog, WarningDialogRef } from '~/components/WarningDialog'
import { dateErrorCodes, FORM_TYPE_ENUM } from '~/core/constants/form'
import { CustomerSubscriptionDetailsTabsOptionsEnum } from '~/core/constants/tabsOptions'
import {
CUSTOMER_DETAILS_ROUTE,
CUSTOMER_SUBSCRIPTION_DETAILS_ROUTE,
Expand All @@ -74,8 +75,6 @@ import { useSalesForceConfig } from '~/hooks/useSalesForceConfig'
import ThinkingManeki from '~/public/images/maneki/thinking.svg'
import { BREAKPOINT_LG, NAV_HEIGHT, PageHeader, theme } from '~/styles'

import { CustomerSubscriptionDetailsTabsOptionsEnum } from './SubscriptionDetails'

gql`
fragment AddSubscriptionPlan on Plan {
id
Expand Down
1 change: 1 addition & 0 deletions src/pages/CustomerInvoiceDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import { PremiumWarningDialog, PremiumWarningDialogRef } from '~/components/Prem
import { addToast, LagoGQLError } from '~/core/apolloClient'
import { CustomerInvoiceDetailsTabsOptionsEnum } from '~/core/constants/NavigationEnum'
import { invoiceStatusMapping, paymentStatusMapping } from '~/core/constants/statusInvoiceMapping'
import { CustomerInvoiceDetailsTabsOptionsEnum } from '~/core/constants/tabsOptions'
import { intlFormatNumber } from '~/core/formats/intlFormatNumber'
import {
CUSTOMER_CREDIT_NOTE_DETAILS_ROUTE,
Expand Down
6 changes: 1 addition & 5 deletions src/pages/PlanDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { DeletePlanDialog, DeletePlanDialogRef } from '~/components/plans/Delete
import PlanDetailsOverview from '~/components/plans/details/PlanDetailsOverview'
import PlanSubscriptionList from '~/components/plans/details/PlanSubscriptionList'
import { updateDuplicatePlanVar } from '~/core/apolloClient'
import { PlanDetailsTabsOptionsEnum } from '~/core/constants/tabsOptions'
import {
CREATE_PLAN_ROUTE,
CUSTOMER_SUBSCRIPTION_DETAILS_ROUTE,
Expand All @@ -33,11 +34,6 @@ import { useInternationalization } from '~/hooks/core/useInternationalization'
import { usePermissions } from '~/hooks/usePermissions'
import { MenuPopper, PageHeader, theme } from '~/styles'

export enum PlanDetailsTabsOptionsEnum {
overview = 'overview',
subscriptions = 'subscriptions',
}

gql`
query getPlanForDetails($planId: ID!) {
plan(id: $planId) {
Expand Down
Loading

0 comments on commit b76b6e2

Please sign in to comment.