diff --git a/website/docusaurus.config.ts b/website/docusaurus.config.ts index 4463a4a813c..10fc3a2b164 100644 --- a/website/docusaurus.config.ts +++ b/website/docusaurus.config.ts @@ -29,7 +29,7 @@ export type EditUrlButton = { href: string; }; -const commonDocsOptions = { +const commonDocsOptions: PluginContentDocs.Options = { breadcrumbs: false, showLastUpdateAuthor: false, showLastUpdateTime: true, diff --git a/website/src/components/Home/Platforms/FoxFact.tsx b/website/src/components/Home/Platforms/FoxFact.tsx index e62580a92d1..501c0607c31 100644 --- a/website/src/components/Home/Platforms/FoxFact.tsx +++ b/website/src/components/Home/Platforms/FoxFact.tsx @@ -7,7 +7,7 @@ import React from 'react'; -function FoxFact({className}) { +function FoxFact({className}: {className: string}) { return (
{children}
diff --git a/website/src/pages/showcase.tsx b/website/src/pages/showcase.tsx index 2997b8ab77d..b3584cf43f3 100644 --- a/website/src/pages/showcase.tsx +++ b/website/src/pages/showcase.tsx @@ -13,7 +13,11 @@ import type users from '../../showcase.json'; import IconExternalLink from '../theme/Icon/ExternalLink'; import ThemedImage from '@theme/ThemedImage'; -const renderApp = (app, i) => ; +type UserAppType = (typeof users)[keyof typeof users][number]; + +const renderApp = (app: UserAppType, i: number) => ( + +); function Section({ children, @@ -22,7 +26,7 @@ function Section({ return
{children}
; } -const AppBox = ({app}) => { +const AppBox = ({app}: {app: UserAppType}) => { const imgSource = useBaseUrl( app.icon.startsWith('http') ? app.icon : 'img/showcase/' + app.icon ); @@ -38,7 +42,7 @@ const AppBox = ({app}) => {

{app.name}

{renderLinks(app)} - {app.infoLink && ( + {'infoTitle' in app && app.infoLink && ( { ); }; -const renderLinks = app => { +const renderLinks = (app: UserAppType) => { const links = [ app.linkAppStore ? ( @@ -65,12 +69,12 @@ const renderLinks = app => { Android ) : null, - app.linkDesktop ? ( + 'linkDesktop' in app && app.linkDesktop ? ( Desktop ) : null, - app.linkMetaQuest ? ( + 'linkMetaQuest' in app && app.linkMetaQuest ? ( Meta Quest