Skip to content

Commit

Permalink
feat: switch link button and cta (#14272)
Browse files Browse the repository at this point in the history
ref: TAPC-1432

Signed-off-by: Lionel Bueno <[email protected]>
  • Loading branch information
lionel95200x authored Nov 26, 2024
1 parent 0e41684 commit 243f5f0
Showing 1 changed file with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,6 @@ const OnboardingLayoutButton: React.FC<OnboardingLayoutButtonProps> = ({
}
return (
<div className="flex sm:pt-8 xs:pt-2.5 flex-row items-center space-x-4 justify-center">
{orderButtonLabel && (
<OsdsButton
inline
color={ODS_THEME_COLOR_INTENT.primary}
size={ODS_BUTTON_SIZE.md}
href={orderHref}
onClick={onOrderButtonClick}
disabled={(!onOrderButtonClick && !orderHref) || undefined}
>
{orderButtonLabel}
</OsdsButton>
)}

{moreInfoButtonLabel && moreInfoHref && (
<OsdsButton
inline
Expand All @@ -85,6 +72,19 @@ const OnboardingLayoutButton: React.FC<OnboardingLayoutButtonProps> = ({
</span>
</OsdsButton>
)}

{orderButtonLabel && (
<OsdsButton
inline
color={ODS_THEME_COLOR_INTENT.primary}
size={ODS_BUTTON_SIZE.md}
href={orderHref}
onClick={onOrderButtonClick}
disabled={(!onOrderButtonClick && !orderHref) || undefined}
>
{orderButtonLabel}
</OsdsButton>
)}
</div>
);
};
Expand Down

0 comments on commit 243f5f0

Please sign in to comment.