File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import { useEffect } from "react" ;
2- import cx from "classnames" ;
1+ import { useEffect } from "react"
2+ import cx from "classnames"
33
44function 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
88export 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 © Better Auth Inc. - { new Date ( ) . getFullYear ( ) }
7676 </ div >
7777 </ div >
78- ) ;
78+ )
7979}
8080
81- export default Footer ;
81+ export default Footer
You can’t perform that action at this time.
0 commit comments