Skip to content

Commit 7f0df07

Browse files
committed
chore: lint fix
1 parent 22a4a11 commit 7f0df07

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

docs/components/Footer/index.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
import { useEffect } from "react";
2-
import cx from "classnames";
1+
import { useEffect } from "react"
2+
import cx from "classnames"
33

44
function kFormatter(num: number) {
5-
return (Math.sign(num) * (Math.abs(num) / 1000)).toFixed(1) + "k";
5+
return (Math.sign(num) * (Math.abs(num) / 1000)).toFixed(1) + "k"
66
}
77

88
export function Footer({ className = "" }) {
99
useEffect(() => {
1010
fetch("https://api.github.com/repos/nextauthjs/next-auth")
1111
.then((res) => res.json())
1212
.then((data) => {
13-
const githubStat = document.querySelector(".github-counter")!;
14-
if (!githubStat) return;
15-
githubStat.innerHTML = kFormatter(data.stargazers_count ?? 21100);
16-
});
17-
}, []);
13+
const githubStat = document.querySelector(".github-counter")!
14+
if (!githubStat) return
15+
githubStat.innerHTML = kFormatter(data.stargazers_count ?? 21100)
16+
})
17+
}, [])
1818
return (
1919
<div
2020
className={cx(
2121
"mx-auto flex w-full flex-col items-center gap-4 px-12 pb-20 pt-24 text-gray-600 sm:gap-12 dark:text-gray-100",
22-
className,
22+
className
2323
)}
2424
>
2525
<div className="flex w-full max-w-[90rem] flex-col justify-between gap-6 sm:flex-row sm:gap-0">
@@ -75,7 +75,7 @@ export function Footer({ className = "" }) {
7575
Auth.js &copy; Better Auth Inc. - {new Date().getFullYear()}
7676
</div>
7777
</div>
78-
);
78+
)
7979
}
8080

81-
export default Footer;
81+
export default Footer

0 commit comments

Comments
 (0)