diff --git a/package.json b/package.json
index 80d5f5b..ae8abd4 100644
--- a/package.json
+++ b/package.json
@@ -9,8 +9,8 @@
"lint": "next lint",
"format": "prettier --write ."
},
- "engines" : {
- "node" : ">=20.0.0"
+ "engines": {
+ "node": ">=20.0.0"
},
"dependencies": {
"@tanstack/react-query": "^5.20.2",
diff --git a/src/app/affiliation/[shortName]/page.tsx b/src/app/affiliation/[shortName]/page.tsx
index a25e1c4..d1e86e9 100644
--- a/src/app/affiliation/[shortName]/page.tsx
+++ b/src/app/affiliation/[shortName]/page.tsx
@@ -13,9 +13,7 @@ export function generateStaticParams() {
return affiliationsList.map((shortName) => ({ shortName }))
}
-const Description = ({
- description
-}: Readonly<{ description: string }>) => {
+const Description = ({ description }: Readonly<{ description: string }>) => {
return (
<>
{description.split('[linebreak]').map((d, i) => (
diff --git a/src/app/author/[author]/AuthorDisplay.tsx b/src/app/author/[author]/AuthorDisplay.tsx
index c320715..e9a4431 100644
--- a/src/app/author/[author]/AuthorDisplay.tsx
+++ b/src/app/author/[author]/AuthorDisplay.tsx
@@ -11,9 +11,7 @@ import Image from 'next/image'
const zillaSlab = Zilla_Slab({ subsets: ['latin'], weight: ['500'] })
-const MainAuthorPosition = ({
- author
-}: { author: Author }) => {
+const MainAuthorPosition = ({ author }: { author: Author }) => {
const { name, affiliation, website } = author
const mainAffiliationShort = affiliation[0].split('@')[1]
@@ -55,17 +53,13 @@ const MainAuthorPosition = ({
)
}
-const OtherAuthorPositions = ({
- author
-}: { author: Author }) => {
+const OtherAuthorPositions = ({ author }: { author: Author }) => {
const { affiliation } = author
if (affiliation.length === 1) return
return (
<>
-
- Other Positions
-
+ Other Positions
{affiliation.slice(1).map((a: string, i: number) => {
const position = a.split('@')[0]
const affiliation = affiliations[a.split('@')[1]].name
@@ -84,9 +78,7 @@ const OtherAuthorPositions = ({
)
}
-const FormerAuthorPositions = ({
- author
-}: { author: Author }) => {
+const FormerAuthorPositions = ({ author }: { author: Author }) => {
const { formerAffiliations } = author
if (!formerAffiliations) return null
@@ -114,9 +106,7 @@ const FormerAuthorPositions = ({
)
}
-const AuthorBio = ({
- author
-}: { author: Author }) => {
+const AuthorBio = ({ author }: { author: Author }) => {
const { bio } = author
if (!bio) return null
diff --git a/src/app/container/Container.tsx b/src/app/container/Container.tsx
index bd5c4e3..8843556 100644
--- a/src/app/container/Container.tsx
+++ b/src/app/container/Container.tsx
@@ -7,9 +7,5 @@
export default function Container({
children,
}: Readonly<{ children: React.ReactNode }>) {
- return (
-
- {children}
-
- )
+ return {children}
}
diff --git a/src/app/document/view/[slug]/VersionChooser.tsx b/src/app/document/view/[slug]/VersionChooser.tsx
index f32f281..e688713 100644
--- a/src/app/document/view/[slug]/VersionChooser.tsx
+++ b/src/app/document/view/[slug]/VersionChooser.tsx
@@ -112,7 +112,7 @@ const VersionChooser = ({
)}
- );
+ )
}
export default VersionChooser
diff --git a/src/app/layout.tsx b/src/app/layout.tsx
index 9d6682a..2f161c2 100644
--- a/src/app/layout.tsx
+++ b/src/app/layout.tsx
@@ -9,7 +9,7 @@ import MobileMenu from './components/MobileMenu'
import { ToastContainer } from 'react-toastify'
import 'react-toastify/dist/ReactToastify.css'
import Providers from './providers'
-import Image from "next/legacy/image"
+import Image from 'next/legacy/image'
/* The default font is Inter. If you want to use Zilla Slab (or any other Google Font,
which are pre-provided by Next.js in the 'next/font/google' module), you need to
diff --git a/src/app/page.tsx b/src/app/page.tsx
index 97ebd4f..a52861f 100644
--- a/src/app/page.tsx
+++ b/src/app/page.tsx
@@ -1,5 +1,11 @@
import Link from 'next/link'
-import { documents, authors, affiliations, Author, Affiliation } from './db/data'
+import {
+ documents,
+ authors,
+ affiliations,
+ Author,
+ Affiliation,
+} from './db/data'
import News from './components/News'
import RandomDocs from './components/RandomDocs'
import RecentDocuments from './components/RecentDocuments'
@@ -42,24 +48,26 @@ interface AuthorDisplayProps {
const AuthorDisplay = ({ authors, affiliations }: AuthorDisplayProps) => {
return (
- {sortAuthorsByDocumentsPublished(authors).slice(0, 10).map(({ id, author }) => {
- let data = author
- let affiliationSlug = data.affiliation[0].split('@')[1]
- let affiliation = affiliations[affiliationSlug]
- return (
- -
-
- {data.name.first}
- {data.name.nickname ? ` "${data.name.nickname}" ` : ' '}
- {data.name.last}
- {' '}
- of{' '}
-
- {affiliation.short}
-
-
- )
- })}
+ {sortAuthorsByDocumentsPublished(authors)
+ .slice(0, 10)
+ .map(({ id, author }) => {
+ let data = author
+ let affiliationSlug = data.affiliation[0].split('@')[1]
+ let affiliation = affiliations[affiliationSlug]
+ return (
+ -
+
+ {data.name.first}
+ {data.name.nickname ? ` "${data.name.nickname}" ` : ' '}
+ {data.name.last}
+ {' '}
+ of{' '}
+
+ {affiliation.short}
+
+
+ )
+ })}
)
}
diff --git a/src/app/providers.tsx b/src/app/providers.tsx
index f85b889..155e1bf 100644
--- a/src/app/providers.tsx
+++ b/src/app/providers.tsx
@@ -8,14 +8,17 @@ type ProvidersProps = {
}
export default function Providers({ children }: Readonly) {
- const queryClient = useMemo(() =>
+ const queryClient = useMemo(
+ () =>
new QueryClient({
defaultOptions: {
queries: {
staleTime: 60 * 1000,
},
},
- }), [])
+ }),
+ []
+ )
return (
{children}
)