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 Dec 5, 2024
1 parent a775be3 commit f9917d9
Show file tree
Hide file tree
Showing 52 changed files with 79 additions and 91 deletions.
2 changes: 1 addition & 1 deletion src/components/customers/CustomerInvoicesList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import styled from 'styled-components'
import { Chip, InfiniteScroll, Status, Table, Tooltip, Typography } from '~/components/designSystem'
import { addToast, hasDefinedGQLError } from '~/core/apolloClient'
import { invoiceStatusMapping, paymentStatusMapping } from '~/core/constants/statusInvoiceMapping'
import { CustomerInvoiceDetailsTabsOptionsEnum } from '~/core/constants/tabsOptions'
import { intlFormatNumber } from '~/core/formats/intlFormatNumber'
import { CUSTOMER_INVOICE_DETAILS_ROUTE } from '~/core/router'
import { deserializeAmount } from '~/core/serializers/serializeAmount'
Expand All @@ -26,7 +27,6 @@ import {
} from '~/generated/graphql'
import { useInternationalization } from '~/hooks/core/useInternationalization'
import { usePermissions } from '~/hooks/usePermissions'
import { CustomerInvoiceDetailsTabsOptionsEnum } from '~/layouts/CustomerInvoiceDetails'
import { theme } from '~/styles'

import {
Expand Down
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
2 changes: 1 addition & 1 deletion src/components/invoices/InvoicesList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {
import { VoidInvoiceDialog, VoidInvoiceDialogRef } from '~/components/invoices/VoidInvoiceDialog'
import { addToast, hasDefinedGQLError } from '~/core/apolloClient'
import { invoiceStatusMapping, paymentStatusMapping } from '~/core/constants/statusInvoiceMapping'
import { CustomerInvoiceDetailsTabsOptionsEnum } from '~/core/constants/tabsOptions'
import { intlFormatNumber } from '~/core/formats/intlFormatNumber'
import { CUSTOMER_INVOICE_DETAILS_ROUTE, INVOICE_SETTINGS_ROUTE } from '~/core/router'
import { deserializeAmount } from '~/core/serializers/serializeAmount'
Expand All @@ -39,7 +40,6 @@ import {
} from '~/generated/graphql'
import { useInternationalization } from '~/hooks/core/useInternationalization'
import { usePermissions } from '~/hooks/usePermissions'
import { CustomerInvoiceDetailsTabsOptionsEnum } from '~/layouts/CustomerInvoiceDetails'

import { Filters } from '../designSystem/Filters/Filters'
import { AvailableFiltersEnum, AvailableQuickFilters } from '../designSystem/Filters/types'
Expand Down
2 changes: 1 addition & 1 deletion src/components/plans/PlanItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ import {
Typography,
} from '~/components/designSystem'
import { updateDuplicatePlanVar } from '~/core/apolloClient/reactiveVars/duplicatePlanVar'
import { PlanDetailsTabsOptionsEnum } from '~/core/constants/tabsOptions'
import { CREATE_PLAN_ROUTE, PLAN_DETAILS_ROUTE, UPDATE_PLAN_ROUTE } from '~/core/router'
import { DeletePlanDialogFragmentDoc, PlanItemFragment } from '~/generated/graphql'
import { useInternationalization } from '~/hooks/core/useInternationalization'
import { ListKeyNavigationItemProps } from '~/hooks/ui/useListKeyNavigation'
import { useOrganizationInfos } from '~/hooks/useOrganizationInfos'
import { PlanDetailsTabsOptionsEnum } from '~/pages/PlanDetails'
import {
BaseListItem,
ItemContainer,
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
6 changes: 1 addition & 5 deletions src/layouts/CustomerInvoiceDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import { VoidInvoiceDialog, VoidInvoiceDialogRef } from '~/components/invoices/V
import { PremiumWarningDialog, PremiumWarningDialogRef } from '~/components/PremiumWarningDialog'
import { addToast, LagoGQLError } from '~/core/apolloClient'
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 Expand Up @@ -235,11 +236,6 @@ gql`
${SalesforceIntegrationInfosForInvoiceOverviewFragmentDoc}
`

export enum CustomerInvoiceDetailsTabsOptionsEnum {
overview = 'overview',
creditNotes = 'credit-notes',
}

const getErrorMessageFromErrorDetails = (
errors: AllInvoiceDetailsForCustomerInvoiceDetailsFragment['errorDetails'],
): string | undefined => {
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 @@ -24,7 +25,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
Loading

0 comments on commit f9917d9

Please sign in to comment.