Run pre-commit hooks over existing codebase

Co-Authored-By: Ben Phelps <ben@phelps.io>
This commit is contained in:
shamoon
2023-10-17 23:26:55 -07:00
parent fa50bbad9c
commit 19c25713c4
387 changed files with 4785 additions and 4109 deletions

View File

@@ -27,7 +27,7 @@ export default function Component({ service }) {
const params = {
convert: `${currencyCode}`,
}
};
// slugs >> symbols, not both
if (slugs?.length) {
@@ -59,7 +59,9 @@ export default function Component({ service }) {
}
const { data } = statsData;
const validCryptos = Object.values(data).filter(crypto => crypto.quote[currencyCode][`percent_change_${dateRange}`] !== null)
const validCryptos = Object.values(data).filter(
(crypto) => crypto.quote[currencyCode][`percent_change_${dateRange}`] !== null,
);
return (
<Container service={service}>
@@ -84,9 +86,7 @@ export default function Component({ service }) {
</div>
<div
className={`font-bold w-10 mr-2 ${
crypto.quote[currencyCode][`percent_change_${dateRange}`] > 0
? "text-emerald-300"
: "text-rose-300"
crypto.quote[currencyCode][`percent_change_${dateRange}`] > 0 ? "text-emerald-300" : "text-rose-300"
}`}
>
{crypto.quote[currencyCode][`percent_change_${dateRange}`].toFixed(2)}%