diff --git a/src/pages/CreateBillableMetric.tsx b/src/pages/CreateBillableMetric.tsx
index 410c2e4b9..61a7246a6 100644
--- a/src/pages/CreateBillableMetric.tsx
+++ b/src/pages/CreateBillableMetric.tsx
@@ -252,7 +252,7 @@ const CreateBillableMetric = () => {
return (
-
+
{translate(isEdition ? 'text_62582fb4675ece01137a7e44' : 'text_623b42ff8ee4e000ba87d0ae')}
@@ -265,7 +265,7 @@ const CreateBillableMetric = () => {
: navigate(BILLABLE_METRICS_ROUTE)
}
/>
-
+
diff --git a/src/pages/CreateCoupon.tsx b/src/pages/CreateCoupon.tsx
index d2702093b..1475a4443 100644
--- a/src/pages/CreateCoupon.tsx
+++ b/src/pages/CreateCoupon.tsx
@@ -221,7 +221,7 @@ const CreateCoupon = () => {
return (
-
+
{translate(isEdition ? 'text_6287a9bdac160c00b2e0fbe7' : 'text_62876e85e32e0300e18030e7')}
@@ -232,7 +232,7 @@ const CreateCoupon = () => {
formikProps.dirty ? warningDialogRef.current?.openDialog() : couponCloseRedirection()
}
/>
-
+
diff --git a/src/pages/CreateCreditNote.tsx b/src/pages/CreateCreditNote.tsx
index c9d205da3..33cd389a6 100644
--- a/src/pages/CreateCreditNote.tsx
+++ b/src/pages/CreateCreditNote.tsx
@@ -270,7 +270,7 @@ const CreateCreditNote = () => {
return (
-
+
{loading ? (
@@ -297,7 +297,7 @@ const CreateCreditNote = () => {
)
}
/>
-
+
diff --git a/src/pages/CreateInvoice.tsx b/src/pages/CreateInvoice.tsx
index 602f1d014..fe8a5cba6 100644
--- a/src/pages/CreateInvoice.tsx
+++ b/src/pages/CreateInvoice.tsx
@@ -459,7 +459,7 @@ const CreateInvoice = () => {
return (
<>
-
+
{translate('text_6453819268763979024acfe9')}
@@ -473,7 +473,7 @@ const CreateInvoice = () => {
}
/>
)}
-
+
diff --git a/src/pages/CreatePlan.tsx b/src/pages/CreatePlan.tsx
index 9902915b7..13caac488 100644
--- a/src/pages/CreatePlan.tsx
+++ b/src/pages/CreatePlan.tsx
@@ -174,7 +174,7 @@ const CreatePlan = () => {
return (
-
+
{translate(isEdition ? 'text_625fd165963a7b00c8f59767' : 'text_624453d52e945301380e4988')}
@@ -186,7 +186,7 @@ const CreatePlan = () => {
}
data-test="close-create-plan-button"
/>
-
+
diff --git a/src/pages/CreateSubscription.tsx b/src/pages/CreateSubscription.tsx
index 8d0bb6517..334b9e457 100644
--- a/src/pages/CreateSubscription.tsx
+++ b/src/pages/CreateSubscription.tsx
@@ -498,7 +498,7 @@ const CreateSubscription = () => {
return (
-
+
{pageHeaderTitle}
@@ -548,7 +548,7 @@ const CreateSubscription = () => {
data-test="close-create-subscription-button"
/>
)}
-
+
{
return (
-
+
{translate(isEdition ? 'text_645bb193927b375079d289b5' : 'text_645bb193927b375079d289af')}
@@ -81,7 +81,7 @@ const CreateTaxRate = () => {
: onClose()
}
/>
-
+
diff --git a/src/pages/CreditNoteDetails.tsx b/src/pages/CreditNoteDetails.tsx
index 9ad6c85b3..edf219e5e 100644
--- a/src/pages/CreditNoteDetails.tsx
+++ b/src/pages/CreditNoteDetails.tsx
@@ -328,8 +328,8 @@ const CreditNoteDetails = () => {
return (
<>
-
-
+
+
+
{!hasError && !loading && (
{
)}
)}
-
+
{hasError ? (
{
export default CreditNoteDetails
-const HeaderLeft = styled.div`
- display: flex;
- align-items: center;
-
- > *:first-child {
- margin-right: ${theme.spacing(3)};
- }
-`
-
const Content = styled.div`
padding: ${theme.spacing(8)} ${theme.spacing(12)} ${theme.spacing(20)};
diff --git a/src/pages/CustomerDetails.tsx b/src/pages/CustomerDetails.tsx
index a6d84c4e1..85cf8c304 100644
--- a/src/pages/CustomerDetails.tsx
+++ b/src/pages/CustomerDetails.tsx
@@ -138,8 +138,8 @@ const CustomerDetails = () => {
return (
-
-
+
+
-
+
+
-
+
+
{(error || !data?.customer) && !loading ? (
{
)
}
-const HeaderInlineBreadcrumbBlock = styled.div`
- display: flex;
- align-items: center;
- gap: ${theme.spacing(3)};
-
- /* Prevent long name to not overflow in header */
- overflow: hidden;
- /* As overflow is hidden, prevent focus ring to be cropped */
- padding: 4px;
- margin: -4px;
-`
-
-const HeaderInlineActionsBlock = styled.div`
- display: flex;
- align-items: center;
- gap: ${theme.spacing(3)};
- flex-shrink: 0;
-`
-
const Content = styled.div`
display: grid;
grid-template-areas:
diff --git a/src/pages/CustomerDraftInvoicesList.tsx b/src/pages/CustomerDraftInvoicesList.tsx
index 25ec0a76b..1736bb2d8 100644
--- a/src/pages/CustomerDraftInvoicesList.tsx
+++ b/src/pages/CustomerDraftInvoicesList.tsx
@@ -78,8 +78,8 @@ const CustomerDraftInvoicesList = () => {
return (
<>
-
-
+
+
-
+
+
{customerLoading ? (
@@ -149,15 +149,6 @@ const CustomerDraftInvoicesList = () => {
)
}
-const HeaderLeft = styled.div`
- display: flex;
- align-items: center;
-
- > *:first-child {
- margin-right: ${theme.spacing(3)};
- }
-`
-
const ListHeader = styled.div`
height: ${NAV_HEIGHT}px;
display: flex;
diff --git a/src/pages/CustomerInvoiceDetails.tsx b/src/pages/CustomerInvoiceDetails.tsx
index 5dd7cabe9..8bcd5f379 100644
--- a/src/pages/CustomerInvoiceDetails.tsx
+++ b/src/pages/CustomerInvoiceDetails.tsx
@@ -573,8 +573,8 @@ const CustomerInvoiceDetails = () => {
return (
<>
-
-
+
+
+
{!hasError && !loading && (
{
}}
)}
-
+
{!!errorMessage ? (
@@ -953,15 +953,6 @@ const CustomerInvoiceDetails = () => {
)
}
-const HeaderLeft = styled.div`
- display: flex;
- align-items: center;
-
- > *:first-child {
- margin-right: ${theme.spacing(3)};
- }
-`
-
const Content = styled.div`
padding: ${theme.spacing(8)} ${theme.spacing(12)} ${theme.spacing(20)};
diff --git a/src/pages/CustomerRequestOverduePayment/index.tsx b/src/pages/CustomerRequestOverduePayment/index.tsx
index 9f739e16d..b5277593d 100644
--- a/src/pages/CustomerRequestOverduePayment/index.tsx
+++ b/src/pages/CustomerRequestOverduePayment/index.tsx
@@ -183,7 +183,7 @@ const CustomerRequestOverduePayment: FC = () => {
return (
<>
-
+
{translate(
'text_66b258f62100490d0eb5ca73',
@@ -205,7 +205,7 @@ const CustomerRequestOverduePayment: FC = () => {
navigate(generatePath(CUSTOMER_DETAILS_ROUTE, { customerId: customerId ?? '' }))
}
/>
-
+
diff --git a/src/pages/CustomersList.tsx b/src/pages/CustomersList.tsx
index 7d63ed9db..7302bf19d 100644
--- a/src/pages/CustomersList.tsx
+++ b/src/pages/CustomersList.tsx
@@ -70,7 +70,7 @@ const CustomersList = () => {
return (
-
+
{translate('text_624efab67eb2570101d117a5')}
@@ -85,7 +85,7 @@ const CustomersList = () => {
)}
-
+
{
diff --git a/src/pages/InvoicesPage.tsx b/src/pages/InvoicesPage.tsx
index bd32de1e2..34973e2bf 100644
--- a/src/pages/InvoicesPage.tsx
+++ b/src/pages/InvoicesPage.tsx
@@ -1,7 +1,6 @@
import { gql } from '@apollo/client'
import { useMemo, useRef } from 'react'
import { generatePath, useParams, useSearchParams } from 'react-router-dom'
-import styled from 'styled-components'
import CreditNotesTable from '~/components/creditNote/CreditNotesTable'
import { Button, NavigationTab, Typography } from '~/components/designSystem'
@@ -43,7 +42,7 @@ import { useInternationalization } from '~/hooks/core/useInternationalization'
import { useDebouncedSearch } from '~/hooks/useDebouncedSearch'
import { useOrganizationInfos } from '~/hooks/useOrganizationInfos'
import { usePermissions } from '~/hooks/usePermissions'
-import { PageHeader, theme } from '~/styles'
+import { PageHeader } from '~/styles'
gql`
query getInvoicesList(
@@ -319,12 +318,12 @@ const InvoicesPage = () => {
return (
<>
-
+
{translate('text_63ac86d797f728a87b2f9f85')}
-
+
{tab === InvoiceListTabEnum.invoices ? (
<>
{
{translate('text_63ac86d797f728a87b2f9fc4')}
)}
-
-
+
+
{
}
export default InvoicesPage
-
-const HeaderRigthBlock = styled.div`
- display: flex;
- align-items: center;
- gap: ${theme.spacing(3)};
-`
diff --git a/src/pages/PlanDetails.tsx b/src/pages/PlanDetails.tsx
index d0bd455f4..72537b10c 100644
--- a/src/pages/PlanDetails.tsx
+++ b/src/pages/PlanDetails.tsx
@@ -77,8 +77,8 @@ const PlanDetails = () => {
return (
<>
-
-
+
+
+
{shouldShowActions && (
{
)}
)}
-
+
@@ -248,15 +248,6 @@ const TabContentWrapper = styled.div`
max-width: 672px;
`
-const HeaderInlineBreadcrumbBlock = styled.div`
- display: flex;
- align-items: center;
- gap: ${theme.spacing(3)};
-
- /* Prevent long name to not overflow in header */
- overflow: hidden;
-`
-
const PlanBlockWrapper = styled.div`
display: flex;
gap: ${theme.spacing(4)};
diff --git a/src/pages/PlansList.tsx b/src/pages/PlansList.tsx
index 912abc54d..08041464d 100644
--- a/src/pages/PlansList.tsx
+++ b/src/pages/PlansList.tsx
@@ -1,7 +1,6 @@
import { gql } from '@apollo/client'
import { useRef } from 'react'
import { generatePath, useNavigate } from 'react-router-dom'
-import styled from 'styled-components'
import {
Avatar,
@@ -20,7 +19,7 @@ import { useInternationalization } from '~/hooks/core/useInternationalization'
import { useDebouncedSearch } from '~/hooks/useDebouncedSearch'
import { useOrganizationInfos } from '~/hooks/useOrganizationInfos'
import { usePermissions } from '~/hooks/usePermissions'
-import { PageHeader, theme } from '~/styles'
+import { PageHeader } from '~/styles'
import { PlanDetailsTabsOptionsEnum } from './PlanDetails'
@@ -68,11 +67,11 @@ const PlansList = () => {
return (
<>
-
+
{translate('text_62442e40cea25600b0b6d84a')}
-
+
{
{translate('text_62442e40cea25600b0b6d84c')}
)}
-
-
+
+
{
@@ -239,23 +238,4 @@ const PlansList = () => {
)
}
-const Header = styled(PageHeader)`
- > * {
- white-space: pre;
-
- &:first-child {
- margin-right: ${theme.spacing(4)};
- }
- }
-`
-
-const HeaderRigthBlock = styled.div`
- display: flex;
- align-items: center;
-
- > :first-child {
- margin-right: ${theme.spacing(3)};
- }
-`
-
export default PlansList
diff --git a/src/pages/SubscriptionDetails.tsx b/src/pages/SubscriptionDetails.tsx
index d2a37ccc2..c58ab3c0a 100644
--- a/src/pages/SubscriptionDetails.tsx
+++ b/src/pages/SubscriptionDetails.tsx
@@ -80,8 +80,8 @@ const SubscriptionDetails = () => {
return (
<>
-
-
+
+
+
{!isSubscriptionLoading && (
{
)}
)}
-
+
@@ -319,15 +319,6 @@ const TabContentWrapper = styled.div`
max-width: 672px;
`
-const HeaderInlineBreadcrumbBlock = styled.div`
- display: flex;
- align-items: center;
- gap: ${theme.spacing(3)};
-
- /* Prevent long name to not overflow in header */
- overflow: hidden;
-`
-
const PlanBlockWrapper = styled.div`
display: flex;
gap: ${theme.spacing(4)};
diff --git a/src/pages/WalletForm/WalletForm.tsx b/src/pages/WalletForm/WalletForm.tsx
index ebb233252..3cda7cf4f 100644
--- a/src/pages/WalletForm/WalletForm.tsx
+++ b/src/pages/WalletForm/WalletForm.tsx
@@ -284,7 +284,7 @@ const WalletForm = () => {
return (
<>
-
+
{translate(
formType === FORM_TYPE_ENUM.edition
@@ -302,7 +302,7 @@ const WalletForm = () => {
}
data-test="close-create-plan-button"
/>
-
+
diff --git a/src/pages/__devOnly/DesignSystem.tsx b/src/pages/__devOnly/DesignSystem.tsx
index b9d754ca9..2037c78a1 100644
--- a/src/pages/__devOnly/DesignSystem.tsx
+++ b/src/pages/__devOnly/DesignSystem.tsx
@@ -139,12 +139,12 @@ const DesignSystem = () => {
return (
<>
-
+
Design System components
Only visible in dev mode
-
+
{
return (
-
+
+
{!!error && !loading && !isLoading ? (
{
return (
<>
-
-
+
+
{
{adyenPaymentProvider?.name}
)}
-
+
{(canEditIntegration || canDeleteIntegration) && (
{
)}
)}
-
+
{loading ? (
<>
@@ -339,10 +339,10 @@ const AdyenIntegrationDetails = () => {
{loading ? (
-
+
-
+
) : (
<>
{!adyenPaymentProvider?.successRedirectUrl ? (
@@ -438,15 +438,6 @@ const AdyenIntegrationDetails = () => {
)
}
-const HeaderBlock = styled.div`
- display: flex;
- align-items: center;
-
- > *:first-child {
- margin-right: ${theme.spacing(3)};
- }
-`
-
const MainInfos = styled.div`
display: flex;
align-items: center;
diff --git a/src/pages/settings/AdyenIntegrations.tsx b/src/pages/settings/AdyenIntegrations.tsx
index 3d442dcd3..90fe3afa8 100644
--- a/src/pages/settings/AdyenIntegrations.tsx
+++ b/src/pages/settings/AdyenIntegrations.tsx
@@ -94,8 +94,8 @@ const AdyenIntegrations = () => {
return (
<>
-
-
+
+
{
{translate('text_645d071272418a14c1c76a6d')}
)}
-
+
{canCreateIntegration && (
)}
-
+
+
{loading ? (
<>
@@ -263,15 +264,6 @@ const AdyenIntegrations = () => {
)
}
-const HeaderBlock = styled.div`
- display: flex;
- align-items: center;
-
- > *:first-child {
- margin-right: ${theme.spacing(3)};
- }
-`
-
const MainInfos = styled.div`
display: flex;
align-items: center;
diff --git a/src/pages/settings/AnrokIntegrationDetails.tsx b/src/pages/settings/AnrokIntegrationDetails.tsx
index 28d4aa533..07311a565 100644
--- a/src/pages/settings/AnrokIntegrationDetails.tsx
+++ b/src/pages/settings/AnrokIntegrationDetails.tsx
@@ -112,8 +112,8 @@ const AnrokIntegrationDetails = () => {
return (
<>
-
-
+
+
{
{anrokIntegration?.name}
)}
-
+
{
)}
-
+
{loading ? (
<>
@@ -224,15 +224,6 @@ const AnrokIntegrationDetails = () => {
)
}
-const HeaderBlock = styled.div`
- display: flex;
- align-items: center;
-
- > *:first-child {
- margin-right: ${theme.spacing(3)};
- }
-`
-
const MainInfos = styled.div`
display: flex;
align-items: center;
diff --git a/src/pages/settings/AnrokIntegrations.tsx b/src/pages/settings/AnrokIntegrations.tsx
index 9df7e3eaa..7242bc56e 100644
--- a/src/pages/settings/AnrokIntegrations.tsx
+++ b/src/pages/settings/AnrokIntegrations.tsx
@@ -84,8 +84,8 @@ const AnrokIntegrations = () => {
return (
<>
-
-
+
+
{
{translate('text_6668821d94e4da4dfd8b3834')}
)}
-
+
-
+
{loading ? (
<>
@@ -243,15 +243,6 @@ const AnrokIntegrations = () => {
)
}
-const HeaderBlock = styled.div`
- display: flex;
- align-items: center;
-
- > *:first-child {
- margin-right: ${theme.spacing(3)};
- }
-`
-
const MainInfos = styled.div`
display: flex;
align-items: center;
diff --git a/src/pages/settings/Authentication/OktaAuthenticationDetails.tsx b/src/pages/settings/Authentication/OktaAuthenticationDetails.tsx
index 04793f320..871f95549 100644
--- a/src/pages/settings/Authentication/OktaAuthenticationDetails.tsx
+++ b/src/pages/settings/Authentication/OktaAuthenticationDetails.tsx
@@ -86,8 +86,8 @@ const OktaAuthenticationDetails = () => {
return (
<>
-
-
+
+
{
{translate('text_664c732c264d7eed1c74fda2')}
)}
-
+
{
)}
-
+
{loading ? (
<>
@@ -225,15 +225,6 @@ const OktaAuthenticationDetails = () => {
)
}
-const HeaderBlock = styled.div`
- display: flex;
- align-items: center;
-
- > *:first-child {
- margin-right: ${theme.spacing(3)};
- }
-`
-
const MainInfos = styled.div`
display: flex;
align-items: center;
diff --git a/src/pages/settings/EmailScenarioConfig.tsx b/src/pages/settings/EmailScenarioConfig.tsx
index cbb4c8cfd..640253370 100644
--- a/src/pages/settings/EmailScenarioConfig.tsx
+++ b/src/pages/settings/EmailScenarioConfig.tsx
@@ -74,8 +74,8 @@ const EmailScenarioConfig = () => {
return (
-
-
+
+
+
{hasPermissions(['organizationEmailsUpdate']) && (
@@ -110,7 +110,7 @@ const EmailScenarioConfig = () => {
{!isPremium && }
)}
-
+
{loading ? (
<>
@@ -269,16 +269,6 @@ const Container = styled.div`
overflow: auto;
`
-const HeaderLeft = styled.div`
- display: flex;
- align-items: center;
- min-width: 0;
-
- > *:first-child {
- margin-right: ${theme.spacing(3)};
- }
-`
-
const Title = styled.div`
display: flex;
padding: ${theme.spacing(8)} ${theme.spacing(12)};
diff --git a/src/pages/settings/GocardlessIntegrationDetails.tsx b/src/pages/settings/GocardlessIntegrationDetails.tsx
index f0a3a0b54..9031be77a 100644
--- a/src/pages/settings/GocardlessIntegrationDetails.tsx
+++ b/src/pages/settings/GocardlessIntegrationDetails.tsx
@@ -109,8 +109,8 @@ const GocardlessIntegrationDetails = () => {
return (
-
-
+
+
{
{gocardlessPaymentProvider?.name}
)}
-
+
{(canEditIntegration || canDeleteIntegration) && (
{
)}
)}
-
+
{loading ? (
<>
@@ -359,10 +359,10 @@ const GocardlessIntegrationDetails = () => {
{loading ? (
-
+
-
+
) : (
<>
{!gocardlessPaymentProvider?.successRedirectUrl ? (
@@ -458,15 +458,6 @@ const GocardlessIntegrationDetails = () => {
)
}
-const HeaderBlock = styled.div`
- display: flex;
- align-items: center;
-
- > *:first-child {
- margin-right: ${theme.spacing(3)};
- }
-`
-
const MainInfos = styled.div`
display: flex;
align-items: center;
diff --git a/src/pages/settings/GocardlessIntegrationOauthCallback.tsx b/src/pages/settings/GocardlessIntegrationOauthCallback.tsx
index 9aa31b9e2..9ec90a483 100644
--- a/src/pages/settings/GocardlessIntegrationOauthCallback.tsx
+++ b/src/pages/settings/GocardlessIntegrationOauthCallback.tsx
@@ -79,8 +79,8 @@ const GocardlessIntegrationOauthCallback = () => {
return (
<>
-
-
+
+
{
{translate('text_634ea0ecc6147de10ddb6625')}
)}
-
-
+
+
{loading ? (
<>
@@ -139,15 +139,6 @@ const GocardlessIntegrationOauthCallback = () => {
)
}
-const HeaderBlock = styled.div`
- display: flex;
- align-items: center;
-
- > *:first-child {
- margin-right: ${theme.spacing(3)};
- }
-`
-
const MainInfos = styled.div`
display: flex;
align-items: center;
diff --git a/src/pages/settings/GocardlessIntegrations.tsx b/src/pages/settings/GocardlessIntegrations.tsx
index b6e93018d..27ff72afc 100644
--- a/src/pages/settings/GocardlessIntegrations.tsx
+++ b/src/pages/settings/GocardlessIntegrations.tsx
@@ -94,8 +94,8 @@ const GocardlessIntegrations = () => {
return (
<>
-
-
+
+
{
{translate('text_634ea0ecc6147de10ddb6625')}
)}
-
+
{canCreateIntegration && (
)}
-
+
{loading ? (
<>
@@ -263,15 +263,6 @@ const GocardlessIntegrations = () => {
)
}
-const HeaderBlock = styled.div`
- display: flex;
- align-items: center;
-
- > *:first-child {
- margin-right: ${theme.spacing(3)};
- }
-`
-
const MainInfos = styled.div`
display: flex;
align-items: center;
diff --git a/src/pages/settings/HubspotIntegrationDetails.tsx b/src/pages/settings/HubspotIntegrationDetails.tsx
index 4d0973cb3..859a9832d 100644
--- a/src/pages/settings/HubspotIntegrationDetails.tsx
+++ b/src/pages/settings/HubspotIntegrationDetails.tsx
@@ -103,8 +103,8 @@ const HubspotIntegrationDetails = () => {
return (
<>
-
-
+
+
{
{hubspotIntegration?.name}
)}
-
+
{
)}
-
+
{loading ? (
diff --git a/src/pages/settings/HubspotIntegrations.tsx b/src/pages/settings/HubspotIntegrations.tsx
index bd69f68ed..293de8641 100644
--- a/src/pages/settings/HubspotIntegrations.tsx
+++ b/src/pages/settings/HubspotIntegrations.tsx
@@ -72,8 +72,8 @@ const HubspotIntegrations = () => {
return (
<>
-
-
+
+
{
{translate('text_1727189568053s79ks5q07tr')}
)}
-
+
-
+
{loading ? (
diff --git a/src/pages/settings/LagoTaxManagementIntegration.tsx b/src/pages/settings/LagoTaxManagementIntegration.tsx
index 5755afa49..4213e90d4 100644
--- a/src/pages/settings/LagoTaxManagementIntegration.tsx
+++ b/src/pages/settings/LagoTaxManagementIntegration.tsx
@@ -92,8 +92,8 @@ const LagoTaxManagementIntegration = () => {
return (
<>
-
-
+
+
{
{translate('text_657078c28394d6b1ae1b9713')}
)}
-
+
{hasPermissions(['organizationIntegrationsDelete']) && (
)}
-
+
{loading ? (
<>
@@ -201,10 +201,10 @@ const LagoTaxManagementIntegration = () => {
{loading ? (
-
+
-
+
) : (
<>
{taxesData?.taxes?.collection.map((tax) => (
@@ -253,15 +253,6 @@ const LagoTaxManagementIntegration = () => {
)
}
-const HeaderBlock = styled.div`
- display: flex;
- align-items: center;
-
- > *:first-child {
- margin-right: ${theme.spacing(3)};
- }
-`
-
const MainInfos = styled.div`
display: flex;
align-items: center;
diff --git a/src/pages/settings/NetsuiteIntegrationDetails.tsx b/src/pages/settings/NetsuiteIntegrationDetails.tsx
index 01ee89365..431dfd095 100644
--- a/src/pages/settings/NetsuiteIntegrationDetails.tsx
+++ b/src/pages/settings/NetsuiteIntegrationDetails.tsx
@@ -112,8 +112,8 @@ const NetsuiteIntegrationDetails = () => {
return (
<>
-
-
+
+
{
{netsuiteIntegration?.name}
)}
-
+
{
)}
-
+
{loading ? (
<>
@@ -224,15 +224,6 @@ const NetsuiteIntegrationDetails = () => {
)
}
-const HeaderBlock = styled.div`
- display: flex;
- align-items: center;
-
- > *:first-child {
- margin-right: ${theme.spacing(3)};
- }
-`
-
const MainInfos = styled.div`
display: flex;
align-items: center;
diff --git a/src/pages/settings/NetsuiteIntegrations.tsx b/src/pages/settings/NetsuiteIntegrations.tsx
index 278209988..088a49e8a 100644
--- a/src/pages/settings/NetsuiteIntegrations.tsx
+++ b/src/pages/settings/NetsuiteIntegrations.tsx
@@ -84,8 +84,8 @@ const NetsuiteIntegrations = () => {
return (
<>
-
-
+
+
{
{translate('text_661ff6e56ef7e1b7c542b239')}
)}
-
+
-
+
{loading ? (
<>
@@ -243,15 +243,6 @@ const NetsuiteIntegrations = () => {
)
}
-const HeaderBlock = styled.div`
- display: flex;
- align-items: center;
-
- > *:first-child {
- margin-right: ${theme.spacing(3)};
- }
-`
-
const MainInfos = styled.div`
display: flex;
align-items: center;
diff --git a/src/pages/settings/SalesforceIntegrationDetails.tsx b/src/pages/settings/SalesforceIntegrationDetails.tsx
index 87f033aaa..c78577612 100644
--- a/src/pages/settings/SalesforceIntegrationDetails.tsx
+++ b/src/pages/settings/SalesforceIntegrationDetails.tsx
@@ -103,8 +103,8 @@ const SalesforceIntegrationDetails = () => {
return (
<>
-
-
+
+
{
{salesforceIntegration?.name}
)}
-
+
{
)}
-
+
{loading ? (
diff --git a/src/pages/settings/SalesforceIntegrations.tsx b/src/pages/settings/SalesforceIntegrations.tsx
index 6bf6e444f..00d5895d3 100644
--- a/src/pages/settings/SalesforceIntegrations.tsx
+++ b/src/pages/settings/SalesforceIntegrations.tsx
@@ -75,8 +75,8 @@ const SalesforceIntegrations = () => {
return (
<>
-
-
+
+
{
{translate('text_1731507195246vu9kt6xnhv6')}
)}
-
+
-
+
{loading ? (
diff --git a/src/pages/settings/StripeIntegrationDetails.tsx b/src/pages/settings/StripeIntegrationDetails.tsx
index 967f44a07..bb2ec8cd3 100644
--- a/src/pages/settings/StripeIntegrationDetails.tsx
+++ b/src/pages/settings/StripeIntegrationDetails.tsx
@@ -107,8 +107,8 @@ const StripeIntegrationDetails = () => {
return (
<>
-
-
+
+
{
{stripePaymentProvider?.name}
)}
-
+
{(canEditIntegration || canDeleteIntegration) && (
{
)}
)}
-
+
{loading ? (
<>
@@ -408,15 +408,6 @@ const StripeIntegrationDetails = () => {
)
}
-const HeaderBlock = styled.div`
- display: flex;
- align-items: center;
-
- > *:first-child {
- margin-right: ${theme.spacing(3)};
- }
-`
-
const MainInfos = styled.div`
display: flex;
align-items: center;
diff --git a/src/pages/settings/StripeIntegrations.tsx b/src/pages/settings/StripeIntegrations.tsx
index b875f288d..00635c1bd 100644
--- a/src/pages/settings/StripeIntegrations.tsx
+++ b/src/pages/settings/StripeIntegrations.tsx
@@ -94,8 +94,8 @@ const StripeIntegrations = () => {
return (
<>
-
-
+
+
{
{translate('text_62b1edddbf5f461ab971277d')}
)}
-
+
{canCreateIntegration && (
)}
-
+
{loading ? (
<>
@@ -264,15 +264,6 @@ const StripeIntegrations = () => {
)
}
-const HeaderBlock = styled.div`
- display: flex;
- align-items: center;
-
- > *:first-child {
- margin-right: ${theme.spacing(3)};
- }
-`
-
const MainInfos = styled.div`
display: flex;
align-items: center;
diff --git a/src/pages/settings/XeroIntegrationDetails.tsx b/src/pages/settings/XeroIntegrationDetails.tsx
index 34b31a3e4..39536c4c6 100644
--- a/src/pages/settings/XeroIntegrationDetails.tsx
+++ b/src/pages/settings/XeroIntegrationDetails.tsx
@@ -105,8 +105,8 @@ const XeroIntegrationDetails = () => {
return (
<>
-
-
+
+
{
{xeroIntegration?.name}
)}
-
+
{
)}
-
+
{loading ? (
<>
@@ -217,15 +217,6 @@ const XeroIntegrationDetails = () => {
)
}
-const HeaderBlock = styled.div`
- display: flex;
- align-items: center;
-
- > *:first-child {
- margin-right: ${theme.spacing(3)};
- }
-`
-
const MainInfos = styled.div`
display: flex;
align-items: center;
diff --git a/src/pages/settings/XeroIntegrations.tsx b/src/pages/settings/XeroIntegrations.tsx
index a23e65ee0..761b69942 100644
--- a/src/pages/settings/XeroIntegrations.tsx
+++ b/src/pages/settings/XeroIntegrations.tsx
@@ -81,8 +81,8 @@ const XeroIntegrations = () => {
return (
<>
-
-
+
+
{
{translate('text_6672ebb8b1b50be550eccaf8')}
)}
-
+
-
+
{loading ? (
<>
@@ -240,15 +240,6 @@ const XeroIntegrations = () => {
)
}
-const HeaderBlock = styled.div`
- display: flex;
- align-items: center;
-
- > *:first-child {
- margin-right: ${theme.spacing(3)};
- }
-`
-
const MainInfos = styled.div`
display: flex;
align-items: center;
diff --git a/src/styles/designSystem/PageHeader.tsx b/src/styles/designSystem/PageHeader.tsx
index 5cb49a185..7080ccd20 100644
--- a/src/styles/designSystem/PageHeader.tsx
+++ b/src/styles/designSystem/PageHeader.tsx
@@ -2,7 +2,11 @@ import { FC, PropsWithChildren } from 'react'
import { tw } from '../utils'
-export const PageHeader: FC> = ({
+/**
+ * Page Header - Main Wrapper
+ * @param withSide - If true, adds padding to the left and right for burger menu
+ */
+const PageHeaderWrapper: FC> = ({
children,
className,
withSide,
@@ -20,3 +24,16 @@ export const PageHeader: FC
)
+
+/**
+ * Page Header - Section group inside main wrapper
+ */
+const PageHeaderGroup: FC> = ({
+ children,
+ className,
+}) => {children}
+
+export const PageHeader = {
+ Wrapper: PageHeaderWrapper,
+ Group: PageHeaderGroup,
+}