mirror of
https://github.com/audacity/audacity.github.io.git
synced 2026-06-13 03:38:11 -05:00
Improve function name
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user