Skip to content

Commit

Permalink
fix(suite): learn more button wrap in staking
Browse files Browse the repository at this point in the history
  • Loading branch information
enjojoy committed Sep 10, 2024
1 parent 7a6ff56 commit 9477e88
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/suite/src/components/suite/LearnMoreButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,20 @@ import { useExternalLink } from '../../hooks/suite';
interface LearnMoreButtonProps extends Omit<ButtonProps, 'children'> {
url: Url;
children?: ReactNode;
textWrap?: boolean;
}

export const LearnMoreButton = ({
children,
className,
size = 'tiny',
url,
textWrap,
...buttonProps
}: LearnMoreButtonProps) => (
<Button
href={useExternalLink(url)}
textWrap={textWrap}
variant="tertiary"
size={size}
icon="externalLink"
Expand Down
6 changes: 5 additions & 1 deletion packages/suite/src/components/wallet/Fees/CustomFee.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,11 @@ export const CustomFee = <TFieldValues extends FormState>({
variant="warning"
margin={{ bottom: spacings.xs }}
rightContent={
<LearnMoreButton url={HELP_CENTER_TRANSACTION_FEES_URL} variant="warning" />
<LearnMoreButton
textWrap={false}
url={HELP_CENTER_TRANSACTION_FEES_URL}
variant="warning"
/>
}
>
<Translation id="TR_CUSTOM_FEE_WARNING" />
Expand Down

0 comments on commit 9477e88

Please sign in to comment.