-
- {customerName || translate('text_62f272a7a60b4d7fadad911a')}
-
-
{externalId}
+ ) : (
+
+
+
+
+ {customerName || translate('text_62f272a7a60b4d7fadad911a')}
+
+ {externalId}
+
-
- )}
+ )}
-
-
+
+ match: [
+ generatePath(CUSTOMER_DETAILS_TAB_ROUTE, {
+ customerId: customerId as string,
+ tab: CustomerDetailsTabsOptions.overview,
+ }),
+ generatePath(CUSTOMER_DETAILS_ROUTE, {
+ customerId: customerId as string,
+ }),
+ ],
+ component: (
-
- ),
- },
- {
- title: translate('text_62d175066d2dbf1d50bc937c'),
- link: generatePath(CUSTOMER_DETAILS_TAB_ROUTE, {
- customerId: customerId as string,
- tab: CustomerDetailsTabsOptions.wallet,
- }),
- component: (
-
+ ),
+ },
+ {
+ title: translate('text_62d175066d2dbf1d50bc937c'),
+ link: generatePath(CUSTOMER_DETAILS_TAB_ROUTE, {
+ customerId: customerId as string,
+ tab: CustomerDetailsTabsOptions.wallet,
+ }),
+ component: (
-
- ),
- },
- {
- title: translate('text_6553885df387fd0097fd7384'),
- link: generatePath(CUSTOMER_DETAILS_TAB_ROUTE, {
- customerId: customerId as string,
- tab: CustomerDetailsTabsOptions.usage,
- }),
- hidden: !hasPermissions(['analyticsView']),
- component: (
-
+ ),
+ },
+ {
+ title: translate('text_6553885df387fd0097fd7384'),
+ link: generatePath(CUSTOMER_DETAILS_TAB_ROUTE, {
+ customerId: customerId as string,
+ tab: CustomerDetailsTabsOptions.usage,
+ }),
+ hidden: !hasPermissions(['analyticsView']),
+ component: (
-
- ),
- },
- {
- title: translate('text_628cf761cbe6820138b8f2e6'),
- link: generatePath(CUSTOMER_DETAILS_TAB_ROUTE, {
- customerId: customerId as string,
- tab: CustomerDetailsTabsOptions.invoices,
- }),
- component: (
-
+ ),
+ },
+ {
+ title: translate('text_628cf761cbe6820138b8f2e6'),
+ link: generatePath(CUSTOMER_DETAILS_TAB_ROUTE, {
+ customerId: customerId as string,
+ tab: CustomerDetailsTabsOptions.invoices,
+ }),
+ component: (
-
- ),
- },
- {
- title: translate('text_63725b30957fd5b26b308dd3'),
- link: generatePath(CUSTOMER_DETAILS_TAB_ROUTE, {
- customerId: customerId as string,
- tab: CustomerDetailsTabsOptions.creditNotes,
- }),
- hidden: !hasCreditNotes,
- component: (
-
+ ),
+ },
+ {
+ title: translate('text_63725b30957fd5b26b308dd3'),
+ link: generatePath(CUSTOMER_DETAILS_TAB_ROUTE, {
+ customerId: customerId as string,
+ tab: CustomerDetailsTabsOptions.creditNotes,
+ }),
+ hidden: !hasCreditNotes,
+ component: (
{
userCurrency={data?.customer?.currency || undefined}
customerTimezone={safeTimezone}
/>
-
- ),
- },
- {
- title: translate('text_638dff9779fb99299bee9126'),
- link: generatePath(CUSTOMER_DETAILS_TAB_ROUTE, {
- customerId: customerId as string,
- tab: CustomerDetailsTabsOptions.settings,
- }),
- component: ,
- hidden: !hasPermissions(['customerSettingsView']),
- },
- ]}
- loading={
- ![CustomerDetailsTabsOptions.overview, CustomerDetailsTabsOptions.usage].includes(
- tab as CustomerDetailsTabsOptions,
- ) && loading
- }
- />
-
-
-
-
-
- >
- )}
-
+ ),
+ },
+ {
+ title: translate('text_6250304370f0f700a8fdc27d'),
+ link: generatePath(CUSTOMER_DETAILS_TAB_ROUTE, {
+ customerId: customerId as string,
+ tab: CustomerDetailsTabsOptions.details,
+ }),
+ component: (
+
+ navigate(
+ generatePath(UPDATE_CUSTOMER_ROUTE, {
+ customerId: customerId as string,
+ }),
+ )
+ }
+ />
+ ),
+ },
+ {
+ title: translate('text_638dff9779fb99299bee9126'),
+ link: generatePath(CUSTOMER_DETAILS_TAB_ROUTE, {
+ customerId: customerId as string,
+ tab: CustomerDetailsTabsOptions.settings,
+ }),
+ component: ,
+ hidden: !hasPermissions(['customerSettingsView']),
+ },
+ ]}
+ loading={
+ ![
+ CustomerDetailsTabsOptions.overview,
+ CustomerDetailsTabsOptions.usage,
+ ].includes(tab as CustomerDetailsTabsOptions) && loading
+ }
+ />
+
+