From dc7e40886aa80cc1e50f85c9fb0d2e606c846adb Mon Sep 17 00:00:00 2001 From: Rob Wagner Date: Wed, 30 Oct 2024 23:29:03 -0400 Subject: [PATCH] Minor comment cleanup --- client/src/components/ExternalLink.tsx | 4 ++-- client/src/components/PrefetchLink.tsx | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/client/src/components/ExternalLink.tsx b/client/src/components/ExternalLink.tsx index f9dca60..cccda4e 100644 --- a/client/src/components/ExternalLink.tsx +++ b/client/src/components/ExternalLink.tsx @@ -1,6 +1,6 @@ /** - * Wrapper around an tag leading to an external site. Always opens in a new - * tab. + * Wrapper around an `` tag leading to an external site. Always opens in a + * new tab. */ const ExternalLink = ({ to, diff --git a/client/src/components/PrefetchLink.tsx b/client/src/components/PrefetchLink.tsx index 5d169ff..f3941ab 100644 --- a/client/src/components/PrefetchLink.tsx +++ b/client/src/components/PrefetchLink.tsx @@ -4,8 +4,8 @@ import { A } from "@solidjs/router" import { dataSaver } from "../stores/dataSaver" /** - * Wrapper around links that prefetches the route during the next available idle - * frame. + * Wrapper around internal links that prefetches the route during the next + * available idle frame. */ const PrefetchLink = ({ to, @@ -19,7 +19,6 @@ const PrefetchLink = ({ children: JSX.Element }): JSX.Element => { onMount(() => { - // Only prefetch if the user is not using the Save-Data header. if (!dataSaver) { requestIdleCallback(() => { import(`../routes/${file}.tsx`)