Improve function name

This commit is contained in:
Dilson's Pickles
2024-09-11 10:47:26 +10:00
parent af84ef1fd0
commit ff7fe44f84

View File

@@ -3,7 +3,7 @@ import React from "react";
function DownloadCard(props) {
const { OS, title, downloadURL, downloadType, checksum } = props;
function handleButtonClick() {
function handleDownloadButtonClick() {
if (typeof _paq !== "undefined") {
_paq.push([
"trackEvent",
@@ -24,7 +24,7 @@ function DownloadCard(props) {
<h2 className="text-xl font-semibold">{title}</h2>
<a
onClick={() => {
handleButtonClick();
handleDownloadButtonClick();
}}
href={downloadURL}
className="flex justify-center text-center items-center px-4 h-12 w-full sm:w-fit bg-slate-200 hover:bg-slate-300 text-base text-black rounded"