mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-09 03:21:23 +00:00
Scope Get Now button text to SD2 page only via prop (#1111)
This commit is contained in:
1 parent
650cf55421
commit
0651afd6fa
2 files changed
+5
-2
No files matched your search
@@ -8,11 +8,13 @@ import { DOWNLOAD_LINKS } from "../config/github_download_links";
|
||||
interface LandingActionButtonsProps {
|
||||
onDownloadClick?: (e: React.MouseEvent) => void;
|
||||
className?: string;
|
||||
creditsButtonText?: string;
|
||||
}
|
||||
|
||||
export const LandingActionButtons = ({
|
||||
onDownloadClick,
|
||||
className,
|
||||
creditsButtonText = "Supercharge Credits",
|
||||
}: LandingActionButtonsProps) => {
|
||||
const MAC_LINK = DOWNLOAD_LINKS.MACOS;
|
||||
const WINDOWS_LINK = DOWNLOAD_LINKS.WINDOWS;
|
||||
@@ -36,7 +38,7 @@ export const LandingActionButtons = ({
|
||||
href="/pricing"
|
||||
>
|
||||
<FontAwesomeIcon icon={faRocket} />
|
||||
Supercharge Credits
|
||||
{creditsButtonText}
|
||||
</Button>
|
||||
<div className="relative">
|
||||
<Button
|
||||
|
||||
@@ -277,6 +277,7 @@ const LandingSD2 = () => {
|
||||
<LandingActionButtons
|
||||
onDownloadClick={onDownloadClick}
|
||||
className="w-fit max-w-xs sm:max-w-none mx-auto z-10"
|
||||
creditsButtonText="Get Now"
|
||||
/>
|
||||
<img
|
||||
src="/images/buy-credits.png"
|
||||
@@ -819,7 +820,7 @@ const LandingSD2 = () => {
|
||||
</p>
|
||||
|
||||
<div className="relative z-10 w-full flex flex-col items-center">
|
||||
<LandingActionButtons onDownloadClick={onDownloadClick} />
|
||||
<LandingActionButtons onDownloadClick={onDownloadClick} creditsButtonText="Get Now" />
|
||||
<div className="mt-8 text-sm text-white/80 font-medium">
|
||||
Free to use.
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user