mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-07-05 00:03:37 -07:00
UI: Enforce snake case for functions
It's more common to write functions in camelCase in JS, so some people started doing it, including me. But the majority of the codebase is snake_case, so let's enforce that.
This commit is contained in:
committed by
Will Greenberg
parent
e06769158b
commit
2bd6efa503
@@ -43,7 +43,7 @@
|
||||
},
|
||||
};
|
||||
|
||||
async function handleClick() {
|
||||
async function handle_click() {
|
||||
if (is_disabled) return;
|
||||
|
||||
is_requesting = true;
|
||||
@@ -71,7 +71,7 @@
|
||||
|
||||
<button
|
||||
class="text-white font-bold py-2 px-2 sm:px-4 rounded-md flex flex-row items-center gap-1 {buttonClasses}"
|
||||
onclick={handleClick}
|
||||
onclick={handle_click}
|
||||
disabled={is_disabled}
|
||||
aria-label={ariaLabel || label}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user