Skip to content

Commit ef86543

Browse files
committed
Fix props of ButtonLink component.
1 parent b858056 commit ef86543

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

site/components/ButtonLink.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,16 @@ type ButtonLinkProps = {
44
style?: "primary" | "secondary";
55
children: string;
66
className?: string;
7+
title?: string;
8+
href?: string;
79
} & Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "style">;
810

911
export default function ButtonLink({
1012
style = "primary",
1113
children,
1214
className = "",
15+
href = "https://cloud.portaljs.com/",
16+
title = "Get started with PortalJS Cloud",
1317
...rest
1418
}: ButtonLinkProps) {
1519
let _className: string =
@@ -25,8 +29,8 @@ export default function ButtonLink({
2529

2630
return (
2731
<a
28-
href="https://cloud.portaljs.com/"
29-
title="Get started with PortalJS Cloud"
32+
href={href}
33+
title={title}
3034
className={_className}
3135
{...rest}
3236
>

site/components/Hero.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export default function Hero() {
2626
<ButtonLink
2727
style="secondary"
2828
className="mt-8 text-sm"
29+
title="Deploy on Vercel"
2930
href="https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fdatopian%2Fportaljs-frontend-starter&env=NEXT_PUBLIC_DMS&envDescription=DMS%20endpoint%2C%20e.g.%2C%20a%20CKAN%20instance%20URL.%20For%20testing%20purposes%2C%20you%20can%20use%20https%3A%2F%2Fapi.cloud.portaljs.com%2F&project-name=my-portaljs-app&repository-name=my-portaljs-app"
3031
>
3132
Deploy on Vercel

0 commit comments

Comments
 (0)