diff --git a/apps/admin-x-settings/src/admin-x-ds/global/List.tsx b/apps/admin-x-settings/src/admin-x-ds/global/List.tsx index 28f0fdd2b9..a2e43abcd5 100644 --- a/apps/admin-x-settings/src/admin-x-ds/global/List.tsx +++ b/apps/admin-x-settings/src/admin-x-ds/global/List.tsx @@ -47,7 +47,7 @@ const List: React.FC = ({ <> {pageTitle && {pageTitle}}
- + {title && }
{children}
diff --git a/apps/admin-x-settings/src/components/Sidebar.tsx b/apps/admin-x-settings/src/components/Sidebar.tsx index d5849da4db..649760c3f1 100644 --- a/apps/admin-x-settings/src/components/Sidebar.tsx +++ b/apps/admin-x-settings/src/components/Sidebar.tsx @@ -48,7 +48,7 @@ const Sidebar: React.FC = () => { - + @@ -68,7 +68,7 @@ const Sidebar: React.FC = () => { - + {newslettersEnabled !== 'disabled' && ( <> diff --git a/apps/admin-x-settings/src/components/settings/advanced/Integrations.tsx b/apps/admin-x-settings/src/components/settings/advanced/Integrations.tsx index dc7c55702e..640ed7ea98 100644 --- a/apps/admin-x-settings/src/components/settings/advanced/Integrations.tsx +++ b/apps/admin-x-settings/src/components/settings/advanced/Integrations.tsx @@ -4,6 +4,7 @@ import Icon from '../../../admin-x-ds/global/Icon'; import List from '../../../admin-x-ds/global/List'; import ListItem from '../../../admin-x-ds/global/ListItem'; import NiceModal from '@ebay/nice-modal-react'; +import NoValueLabel from '../../../admin-x-ds/global/NoValueLabel'; import React, {useState} from 'react'; import SettingGroup from '../../../admin-x-ds/settings/SettingGroup'; import TabView from '../../../admin-x-ds/global/TabView'; @@ -138,39 +139,45 @@ const CustomIntegrations: React.FC<{integrations: Integration[]}> = ({integratio const {updateRoute} = useRouting(); const {mutateAsync: deleteIntegration} = useDeleteIntegration(); - return ( - - {integrations.map(integration => ( - updateRoute({route: `integrations/show/${integration.id}`})} - detail={integration.description || 'No description'} - icon={ - integration.icon_image ? - : - - } - title={integration.name} - custom - onDelete={() => { - NiceModal.show(ConfirmationModal, { - title: 'Are you sure?', - prompt: 'Deleting this integration will remove all webhooks and api keys associated with it.', - okColor: 'red', - okLabel: 'Delete Integration', - onOk: async (confirmModal) => { - await deleteIntegration(integration.id); - confirmModal?.remove(); - showToast({ - message: 'Integration deleted', - type: 'success' - }); - } - }); - }} - />) - )} - - ); + if (integrations.length) { + return ( + + {integrations.map(integration => ( + updateRoute({route: `integrations/show/${integration.id}`})} + detail={integration.description || 'No description'} + icon={ + integration.icon_image ? + : + + } + title={integration.name} + custom + onDelete={() => { + NiceModal.show(ConfirmationModal, { + title: 'Are you sure?', + prompt: 'Deleting this integration will remove all webhooks and api keys associated with it.', + okColor: 'red', + okLabel: 'Delete Integration', + onOk: async (confirmModal) => { + await deleteIntegration(integration.id); + confirmModal?.remove(); + showToast({ + message: 'Integration deleted', + type: 'success' + }); + } + }); + }} + />) + )} + + ); + } else { + return + No custom integration. + ; + } }; const Integrations: React.FC<{ keywords: string[] }> = ({keywords}) => { diff --git a/apps/admin-x-settings/src/components/settings/advanced/integrations/WebhookModal.tsx b/apps/admin-x-settings/src/components/settings/advanced/integrations/WebhookModal.tsx index bc4a4cb34b..3f1f7adfe8 100644 --- a/apps/admin-x-settings/src/components/settings/advanced/integrations/WebhookModal.tsx +++ b/apps/admin-x-settings/src/components/settings/advanced/integrations/WebhookModal.tsx @@ -112,7 +112,7 @@ const WebhookModal: React.FC = ({webhook, integrationId}) => onKeyDown={() => clearError('target_url')} /> updateForm(state => ({...state, secret: e.target.value}))} diff --git a/apps/admin-x-settings/src/components/settings/email/DefaultRecipients.tsx b/apps/admin-x-settings/src/components/settings/email/DefaultRecipients.tsx index d57bf729d7..f268de417c 100644 --- a/apps/admin-x-settings/src/components/settings/email/DefaultRecipients.tsx +++ b/apps/admin-x-settings/src/components/settings/email/DefaultRecipients.tsx @@ -172,7 +172,7 @@ const DefaultRecipients: React.FC<{ keywords: string[] }> = ({keywords}) => { {(selectedOption === 'segment') && ( group.options.length > 0)} - title='Select tiers' + title='Filter' values={selectedSegments} clearBg onChange={setSelectedSegments} diff --git a/apps/admin-x-settings/src/components/settings/general/Metadata.tsx b/apps/admin-x-settings/src/components/settings/general/Metadata.tsx index 2f2e858e3c..c796905b35 100644 --- a/apps/admin-x-settings/src/components/settings/general/Metadata.tsx +++ b/apps/admin-x-settings/src/components/settings/general/Metadata.tsx @@ -106,7 +106,7 @@ const Metadata: React.FC<{ keywords: string[] }> = ({keywords}) => { navid='metadata' saveState={saveState} testId='metadata' - title='Metadata' + title='Meta data' onCancel={handleCancel} onEditingChange={handleEditingChange} onSave={handleSave} diff --git a/apps/admin-x-settings/src/components/settings/general/UserDetailModal.tsx b/apps/admin-x-settings/src/components/settings/general/UserDetailModal.tsx index d02754cf10..1cfafcb834 100644 --- a/apps/admin-x-settings/src/components/settings/general/UserDetailModal.tsx +++ b/apps/admin-x-settings/src/components/settings/general/UserDetailModal.tsx @@ -432,8 +432,8 @@ const Password: React.FC = ({user}) => { const UserMenuTrigger = () => ( ); diff --git a/apps/admin-x-settings/src/components/settings/general/Users.tsx b/apps/admin-x-settings/src/components/settings/general/Users.tsx index 301eac4eb1..b0b0e35ab4 100644 --- a/apps/admin-x-settings/src/components/settings/general/Users.tsx +++ b/apps/admin-x-settings/src/components/settings/general/Users.tsx @@ -20,6 +20,7 @@ interface OwnerProps { interface UsersListProps { users: User[]; + groupname?: string; updateUser?: (user: User) => void; } @@ -43,14 +44,14 @@ const Owner: React.FC = ({user}) => {
- {user.name} — Owner + {user.name} — Owner {user.email}
); }; -const UsersList: React.FC = ({users}) => { +const UsersList: React.FC = ({users, groupname}) => { const {updateRoute} = useRouting(); const showDetailModal = (user: User) => { @@ -60,7 +61,7 @@ const UsersList: React.FC = ({users}) => { if (!users || !users.length) { return ( - No users found. + No {groupname} found. ); } @@ -149,7 +150,7 @@ const InvitesUserList: React.FC = ({users}) => { if (!users || !users.length) { return ( - No users found. + No invitations found. ); } @@ -196,7 +197,7 @@ const Users: React.FC<{ keywords: string[] }> = ({keywords}) => { }; const buttons = ( -