diff --git a/website/src/components/Callout.tsx b/website/src/components/Callout.tsx index f686596e0c1b..83a1bfb88c97 100644 --- a/website/src/components/Callout.tsx +++ b/website/src/components/Callout.tsx @@ -53,7 +53,7 @@ export const Callout = ({ ])} {...(props as ComponentPropsWithoutRef<'div'>)} > -
+
{variant === 'info' ? ( ) : ( @@ -63,7 +63,7 @@ export const Callout = ({
{ const networks = await getSupportedNetworks() - const paths = supportedLocales.flatMap((locale) => - networks.map((network) => ({ - params: { locale, id: network.id }, - })) - ) - -return { paths, fallback: false } } + const paths = [] + for (const locale of supportedLocales) { + for (const network of networks) { + paths.push({ + params: { locale, id: network.id }, + }) + } + } + return { paths, fallback: false } +} export const getStaticProps = async ({ params }) => { const { locale, id } = params diff --git a/website/src/supportedNetworks/components/EmptySearchResults.tsx b/website/src/supportedNetworks/components/EmptySearchResults.tsx index d27b212c395e..41f2edcb225a 100644 --- a/website/src/supportedNetworks/components/EmptySearchResults.tsx +++ b/website/src/supportedNetworks/components/EmptySearchResults.tsx @@ -20,8 +20,8 @@ export const EmptySearchResults = ({ searchQuery, onClearSearch }: EmptySearchRe -

{t('index.supportedNetworks.emptySearch.title')}

-

+

{t('index.supportedNetworks.emptySearch.title')}

+

{t('index.supportedNetworks.emptySearch.description', [searchQuery])}

diff --git a/website/src/supportedNetworks/components/NetworkPage.tsx b/website/src/supportedNetworks/components/NetworkPage.tsx index 1279dc46511f..40b33c14701e 100644 --- a/website/src/supportedNetworks/components/NetworkPage.tsx +++ b/website/src/supportedNetworks/components/NetworkPage.tsx @@ -90,7 +90,7 @@ export const NetworkPage = memo(({ network }: NetworkPageProps) => { )} {networkData.docsUrl && ( - + {networkData.docsUrl} diff --git a/website/src/supportedNetworks/components/NetworkRow.tsx b/website/src/supportedNetworks/components/NetworkRow.tsx index 1ce067e40002..79f030358770 100644 --- a/website/src/supportedNetworks/components/NetworkRow.tsx +++ b/website/src/supportedNetworks/components/NetworkRow.tsx @@ -1,8 +1,7 @@ import { motion } from 'framer-motion' -import NextLink from 'next/link' import { memo } from 'react' -import { ExperimentalCopyButton, Skeleton } from '@edgeandnode/gds' +import { ButtonOrLink, ExperimentalCopyButton, Skeleton } from '@edgeandnode/gds' import { Check } from '@edgeandnode/gds/icons' import { NetworkIcon } from '@edgeandnode/go' @@ -24,7 +23,7 @@ interface NetworkRowProps { export const NetworkRow = memo(({ network, locale }: NetworkRowProps) => { return ( { }} layoutId={network.id} > -
- diff --git a/website/src/supportedNetworks/components/NetworksTable.tsx b/website/src/supportedNetworks/components/NetworksTable.tsx index bd418feffde2..6d48bb4429ab 100644 --- a/website/src/supportedNetworks/components/NetworksTable.tsx +++ b/website/src/supportedNetworks/components/NetworksTable.tsx @@ -25,10 +25,10 @@ export const NetworksTable = memo(({ networks, isLoading, locale }: NetworksTabl
- -
+
+ + {shouldShowSkeleton(network.id) ? ( ) : ( )} - {network.shortName} - - + {network.shortName} + + + -
- {network.id} -
-
{ - e.preventDefault() - e.stopPropagation() - }} - > - -
+
+
+ {network.id} +
+
- - - + -
+ {t('index.supportedNetworks.tableHeaders.name')} + {t('index.supportedNetworks.tableHeaders.id')} diff --git a/website/src/supportedNetworks/components/SkeletonRow.tsx b/website/src/supportedNetworks/components/SkeletonRow.tsx index fa6f7405cbe7..99c00e9125ee 100644 --- a/website/src/supportedNetworks/components/SkeletonRow.tsx +++ b/website/src/supportedNetworks/components/SkeletonRow.tsx @@ -4,14 +4,14 @@ import { Skeleton } from '@edgeandnode/gds' export const SkeletonRow = memo(() => { return ( -
+
+ diff --git a/website/src/supportedNetworks/index.tsx b/website/src/supportedNetworks/index.tsx index 17449a14c971..a2b052311b68 100644 --- a/website/src/supportedNetworks/index.tsx +++ b/website/src/supportedNetworks/index.tsx @@ -60,11 +60,13 @@ export function SupportedNetworksTable({ return ( <> - {t('index.supportedNetworks.infoText')}{' '} - - {t('index.supportedNetworks.infoLink')} - - . +

+ {t('index.supportedNetworks.infoText')}{' '} + + {t('index.supportedNetworks.infoLink')} + + . +