From 522996db84b4f32580849d5586f338e72ecc4baf Mon Sep 17 00:00:00 2001 From: Corwin Smith Date: Wed, 12 Oct 2022 19:45:55 -0500 Subject: [PATCH] change requests --- src/components/UI/downloads/DownloadsHero.tsx | 4 ++-- src/components/UI/downloads/DownloadsTable.tsx | 2 +- src/pages/downloads.tsx | 18 +++++++++++------- src/theme/components/Link.ts | 2 +- 4 files changed, 15 insertions(+), 11 deletions(-) diff --git a/src/components/UI/downloads/DownloadsHero.tsx b/src/components/UI/downloads/DownloadsHero.tsx index 86c7d605e1..67b30355be 100644 --- a/src/components/UI/downloads/DownloadsHero.tsx +++ b/src/components/UI/downloads/DownloadsHero.tsx @@ -56,10 +56,10 @@ export const DownloadsHero: FC = ({ { - Object.keys(DOWNLOAD_HEADER_BUTTONS).map((key: string, idx) => { + Object.keys(DOWNLOAD_HEADER_BUTTONS).map((key: string) => { return ( diff --git a/src/components/UI/downloads/DownloadsTable.tsx b/src/components/UI/downloads/DownloadsTable.tsx index 3de100ff3b..6fc7288b35 100644 --- a/src/components/UI/downloads/DownloadsTable.tsx +++ b/src/components/UI/downloads/DownloadsTable.tsx @@ -38,7 +38,7 @@ export const DownloadsTable: FC = ({ DOWNLOAD_TABS.map((tab, idx) => { return ( { +const DownloadsPage: NextPage = () => { const [amountStableReleases, updateAmountStables] = useState(DEFAULT_BUILD_AMOUNT_TO_SHOW) const [amountDevelopBuilds, updateAmountDevelopBuilds] = useState(DEFAULT_BUILD_AMOUNT_TO_SHOW) + const showMoreStableReleases = () => { + updateAmountStables(amountStableReleases+10) + } + + const showMoreDevelopBuilds = () => { + updateAmountDevelopBuilds(amountDevelopBuilds+10) + } + return ( <> {/* TODO: add PageMetadata */} @@ -108,9 +116,7 @@ const DownloadsPage: NextPage = ({}) => { - { - updateAmountStables(amountStableReleases+10) - }}> + { - { - updateAmountDevelopBuilds(amountDevelopBuilds+10) - }}> +