diff --git a/src/components/PremiumWarningDialog.tsx b/src/components/PremiumWarningDialog.tsx index 34a309dda..654803a1e 100644 --- a/src/components/PremiumWarningDialog.tsx +++ b/src/components/PremiumWarningDialog.tsx @@ -1,5 +1,4 @@ import { forwardRef, useImperativeHandle, useRef, useState } from 'react' -import styled from 'styled-components' import { Button, Dialog, DialogRef } from '~/components/designSystem' import { useInternationalization } from '~/hooks/core/useInternationalization' @@ -41,22 +40,18 @@ export const PremiumWarningDialog = forwardRef((_, ref) - - + )} /> ) }) -const LinkTo = styled.a` - margin-right: 0; - margin-bottom: 0; -` - PremiumWarningDialog.displayName = 'PremiumWarningDialog' diff --git a/src/components/customers/CustomerMainInfos.tsx b/src/components/customers/CustomerMainInfos.tsx index e00e46934..40cb7f18d 100644 --- a/src/components/customers/CustomerMainInfos.tsx +++ b/src/components/customers/CustomerMainInfos.tsx @@ -1,7 +1,7 @@ import { gql } from '@apollo/client' import { Stack } from '@mui/material' -import { useCallback, useRef, useState } from 'react' -import { Link } from 'react-router-dom' +import { FC, PropsWithChildren, useCallback, useRef, useState } from 'react' +import { Link, LinkProps } from 'react-router-dom' import styled from 'styled-components' import { TRANSLATIONS_MAP_CUSTOMER_TYPE } from '~/components/customers/utils' @@ -190,6 +190,17 @@ interface CustomerMainInfosProps { const SHOW_MORE_THRESHOLD = 6 +const InlineLink: FC> = ({ children, ...props }) => { + return ( + + {children} + + ) +} + export const CustomerMainInfos = ({ loading, customer, onEdit }: CustomerMainInfosProps) => { const { translate } = useInternationalization() const [showMore, setShowMore] = useState(false) @@ -737,16 +748,6 @@ const InfosBlock = styled.div<{ $showMore: boolean }>` } ` -const InlineLink = styled(Link)` - width: fit-content; - line-break: anywhere; - box-shadow: none !important; - - &:hover { - text-decoration: none; - } -` - const SectionHeader = styled.div` display: flex; align-items: center; diff --git a/src/components/developers/WebhookLogDetails.tsx b/src/components/developers/WebhookLogDetails.tsx index dc6e02510..abe78b359 100644 --- a/src/components/developers/WebhookLogDetails.tsx +++ b/src/components/developers/WebhookLogDetails.tsx @@ -145,14 +145,21 @@ export const WebhookLogDetails = ({ log }: WebhookLogDetailsProps) => { {translate('text_63e27c56dfe64b846474efb3')} - + )} {translate('text_63e27c56dfe64b846474efb6')} - * { - padding-bottom: 0px; - } -` - const CodeBlock = styled.div<{ $maxHeight?: boolean }>` background-color: ${theme.palette.grey[100]}; box-shadow: ${theme.shadows[7]}; diff --git a/src/components/plans/CommitmentsSection.tsx b/src/components/plans/CommitmentsSection.tsx index c105e524d..c4a0d7dd4 100644 --- a/src/components/plans/CommitmentsSection.tsx +++ b/src/components/plans/CommitmentsSection.tsx @@ -127,7 +127,8 @@ export const CommitmentsSection = ({ {displayMinimumCommitment ? ( - @@ -302,7 +303,7 @@ export const CommitmentsSection = ({ - + ) : (