From a06c1720c2a52055edb66ca6791d3fd3eb15bad0 Mon Sep 17 00:00:00 2001 From: rockbenben Date: Mon, 6 May 2024 17:37:59 +0800 Subject: [PATCH] refactor: remove unused import of Loadable --- i18n/ar/docusaurus-plugin-content-pages/index.tsx | 6 +----- i18n/bn/docusaurus-plugin-content-pages/index.tsx | 6 +----- i18n/de/docusaurus-plugin-content-pages/index.tsx | 6 +----- i18n/en/docusaurus-plugin-content-pages/index.tsx | 6 +----- i18n/es/docusaurus-plugin-content-pages/index.tsx | 6 +----- i18n/fr/docusaurus-plugin-content-pages/index.tsx | 6 +----- i18n/hi/docusaurus-plugin-content-pages/index.tsx | 6 +----- i18n/it/docusaurus-plugin-content-pages/index.tsx | 6 +----- i18n/ja/docusaurus-plugin-content-pages/index.tsx | 6 +----- i18n/ko/docusaurus-plugin-content-pages/index.tsx | 6 +----- i18n/pt/docusaurus-plugin-content-pages/index.tsx | 6 +----- i18n/ru/docusaurus-plugin-content-pages/index.tsx | 6 +----- src/pages/index.tsx | 6 +----- 13 files changed, 13 insertions(+), 65 deletions(-) diff --git a/i18n/ar/docusaurus-plugin-content-pages/index.tsx b/i18n/ar/docusaurus-plugin-content-pages/index.tsx index bbc9e8348..f36842c65 100644 --- a/i18n/ar/docusaurus-plugin-content-pages/index.tsx +++ b/i18n/ar/docusaurus-plugin-content-pages/index.tsx @@ -6,7 +6,6 @@ import useDocusaurusContext from "@docusaurus/useDocusaurusContext"; import Translate, { translate } from "@docusaurus/Translate"; import { useHistory, useLocation } from "@docusaurus/router"; import Link from "@docusaurus/Link"; -import Loadable from "@docusaurus/react-loadable"; import Layout from "@theme/Layout"; import Heading from "@theme/Heading"; @@ -24,13 +23,10 @@ import ShowcaseCard from "@site/src/pages/_components/ShowcaseCard"; import UserStatus from "@site/src/pages/_components/user/UserStatus"; import UserPrompts from "@site/src/pages/_components/user/UserPrompts"; import UserFavorite from "@site/src/pages/_components/user/UserFavorite"; +import ShareButtons from "@site/src/pages/_components/ShareButtons"; import { AuthContext, AuthProvider } from "@site/src/pages/_components/AuthContext"; import { fetchAllCopyCounts } from "@site/src/api"; -const ShareButtons = Loadable({ - loader: () => import("@site/src/pages/_components/ShareButtons"), - loading: () => null, -}); const TITLE = translate({ id: "homepage.title", diff --git a/i18n/bn/docusaurus-plugin-content-pages/index.tsx b/i18n/bn/docusaurus-plugin-content-pages/index.tsx index 714769c2b..2a9c1c571 100644 --- a/i18n/bn/docusaurus-plugin-content-pages/index.tsx +++ b/i18n/bn/docusaurus-plugin-content-pages/index.tsx @@ -6,7 +6,6 @@ import useDocusaurusContext from "@docusaurus/useDocusaurusContext"; import Translate, { translate } from "@docusaurus/Translate"; import { useHistory, useLocation } from "@docusaurus/router"; import Link from "@docusaurus/Link"; -import Loadable from "@docusaurus/react-loadable"; import Layout from "@theme/Layout"; import Heading from "@theme/Heading"; @@ -24,13 +23,10 @@ import ShowcaseCard from "@site/src/pages/_components/ShowcaseCard"; import UserStatus from "@site/src/pages/_components/user/UserStatus"; import UserPrompts from "@site/src/pages/_components/user/UserPrompts"; import UserFavorite from "@site/src/pages/_components/user/UserFavorite"; +import ShareButtons from "@site/src/pages/_components/ShareButtons"; import { AuthContext, AuthProvider } from "@site/src/pages/_components/AuthContext"; import { fetchAllCopyCounts } from "@site/src/api"; -const ShareButtons = Loadable({ - loader: () => import("@site/src/pages/_components/ShareButtons"), - loading: () => null, -}); const TITLE = translate({ id: "homepage.title", diff --git a/i18n/de/docusaurus-plugin-content-pages/index.tsx b/i18n/de/docusaurus-plugin-content-pages/index.tsx index d759193c3..315631097 100644 --- a/i18n/de/docusaurus-plugin-content-pages/index.tsx +++ b/i18n/de/docusaurus-plugin-content-pages/index.tsx @@ -6,7 +6,6 @@ import useDocusaurusContext from "@docusaurus/useDocusaurusContext"; import Translate, { translate } from "@docusaurus/Translate"; import { useHistory, useLocation } from "@docusaurus/router"; import Link from "@docusaurus/Link"; -import Loadable from "@docusaurus/react-loadable"; import Layout from "@theme/Layout"; import Heading from "@theme/Heading"; @@ -24,13 +23,10 @@ import ShowcaseCard from "@site/src/pages/_components/ShowcaseCard"; import UserStatus from "@site/src/pages/_components/user/UserStatus"; import UserPrompts from "@site/src/pages/_components/user/UserPrompts"; import UserFavorite from "@site/src/pages/_components/user/UserFavorite"; +import ShareButtons from "@site/src/pages/_components/ShareButtons"; import { AuthContext, AuthProvider } from "@site/src/pages/_components/AuthContext"; import { fetchAllCopyCounts } from "@site/src/api"; -const ShareButtons = Loadable({ - loader: () => import("@site/src/pages/_components/ShareButtons"), - loading: () => null, -}); const TITLE = translate({ id: "homepage.title", diff --git a/i18n/en/docusaurus-plugin-content-pages/index.tsx b/i18n/en/docusaurus-plugin-content-pages/index.tsx index 6c85d05af..396b92f15 100644 --- a/i18n/en/docusaurus-plugin-content-pages/index.tsx +++ b/i18n/en/docusaurus-plugin-content-pages/index.tsx @@ -6,7 +6,6 @@ import useDocusaurusContext from "@docusaurus/useDocusaurusContext"; import Translate, { translate } from "@docusaurus/Translate"; import { useHistory, useLocation } from "@docusaurus/router"; import Link from "@docusaurus/Link"; -import Loadable from "@docusaurus/react-loadable"; import Layout from "@theme/Layout"; import Heading from "@theme/Heading"; @@ -24,13 +23,10 @@ import ShowcaseCard from "@site/src/pages/_components/ShowcaseCard"; import UserStatus from "@site/src/pages/_components/user/UserStatus"; import UserPrompts from "@site/src/pages/_components/user/UserPrompts"; import UserFavorite from "@site/src/pages/_components/user/UserFavorite"; +import ShareButtons from "@site/src/pages/_components/ShareButtons"; import { AuthContext, AuthProvider } from "@site/src/pages/_components/AuthContext"; import { fetchAllCopyCounts } from "@site/src/api"; -const ShareButtons = Loadable({ - loader: () => import("@site/src/pages/_components/ShareButtons"), - loading: () => null, -}); const TITLE = translate({ id: "homepage.title", diff --git a/i18n/es/docusaurus-plugin-content-pages/index.tsx b/i18n/es/docusaurus-plugin-content-pages/index.tsx index e6ec6a0ac..7e331ad48 100644 --- a/i18n/es/docusaurus-plugin-content-pages/index.tsx +++ b/i18n/es/docusaurus-plugin-content-pages/index.tsx @@ -6,7 +6,6 @@ import useDocusaurusContext from "@docusaurus/useDocusaurusContext"; import Translate, { translate } from "@docusaurus/Translate"; import { useHistory, useLocation } from "@docusaurus/router"; import Link from "@docusaurus/Link"; -import Loadable from "@docusaurus/react-loadable"; import Layout from "@theme/Layout"; import Heading from "@theme/Heading"; @@ -24,13 +23,10 @@ import ShowcaseCard from "@site/src/pages/_components/ShowcaseCard"; import UserStatus from "@site/src/pages/_components/user/UserStatus"; import UserPrompts from "@site/src/pages/_components/user/UserPrompts"; import UserFavorite from "@site/src/pages/_components/user/UserFavorite"; +import ShareButtons from "@site/src/pages/_components/ShareButtons"; import { AuthContext, AuthProvider } from "@site/src/pages/_components/AuthContext"; import { fetchAllCopyCounts } from "@site/src/api"; -const ShareButtons = Loadable({ - loader: () => import("@site/src/pages/_components/ShareButtons"), - loading: () => null, -}); const TITLE = translate({ id: "homepage.title", diff --git a/i18n/fr/docusaurus-plugin-content-pages/index.tsx b/i18n/fr/docusaurus-plugin-content-pages/index.tsx index 11ae8e1df..fc2778231 100644 --- a/i18n/fr/docusaurus-plugin-content-pages/index.tsx +++ b/i18n/fr/docusaurus-plugin-content-pages/index.tsx @@ -6,7 +6,6 @@ import useDocusaurusContext from "@docusaurus/useDocusaurusContext"; import Translate, { translate } from "@docusaurus/Translate"; import { useHistory, useLocation } from "@docusaurus/router"; import Link from "@docusaurus/Link"; -import Loadable from "@docusaurus/react-loadable"; import Layout from "@theme/Layout"; import Heading from "@theme/Heading"; @@ -24,13 +23,10 @@ import ShowcaseCard from "@site/src/pages/_components/ShowcaseCard"; import UserStatus from "@site/src/pages/_components/user/UserStatus"; import UserPrompts from "@site/src/pages/_components/user/UserPrompts"; import UserFavorite from "@site/src/pages/_components/user/UserFavorite"; +import ShareButtons from "@site/src/pages/_components/ShareButtons"; import { AuthContext, AuthProvider } from "@site/src/pages/_components/AuthContext"; import { fetchAllCopyCounts } from "@site/src/api"; -const ShareButtons = Loadable({ - loader: () => import("@site/src/pages/_components/ShareButtons"), - loading: () => null, -}); const TITLE = translate({ id: "homepage.title", diff --git a/i18n/hi/docusaurus-plugin-content-pages/index.tsx b/i18n/hi/docusaurus-plugin-content-pages/index.tsx index 4047a1a9e..941baba3d 100644 --- a/i18n/hi/docusaurus-plugin-content-pages/index.tsx +++ b/i18n/hi/docusaurus-plugin-content-pages/index.tsx @@ -6,7 +6,6 @@ import useDocusaurusContext from "@docusaurus/useDocusaurusContext"; import Translate, { translate } from "@docusaurus/Translate"; import { useHistory, useLocation } from "@docusaurus/router"; import Link from "@docusaurus/Link"; -import Loadable from "@docusaurus/react-loadable"; import Layout from "@theme/Layout"; import Heading from "@theme/Heading"; @@ -24,13 +23,10 @@ import ShowcaseCard from "@site/src/pages/_components/ShowcaseCard"; import UserStatus from "@site/src/pages/_components/user/UserStatus"; import UserPrompts from "@site/src/pages/_components/user/UserPrompts"; import UserFavorite from "@site/src/pages/_components/user/UserFavorite"; +import ShareButtons from "@site/src/pages/_components/ShareButtons"; import { AuthContext, AuthProvider } from "@site/src/pages/_components/AuthContext"; import { fetchAllCopyCounts } from "@site/src/api"; -const ShareButtons = Loadable({ - loader: () => import("@site/src/pages/_components/ShareButtons"), - loading: () => null, -}); const TITLE = translate({ id: "homepage.title", diff --git a/i18n/it/docusaurus-plugin-content-pages/index.tsx b/i18n/it/docusaurus-plugin-content-pages/index.tsx index e39699e52..799645814 100644 --- a/i18n/it/docusaurus-plugin-content-pages/index.tsx +++ b/i18n/it/docusaurus-plugin-content-pages/index.tsx @@ -6,7 +6,6 @@ import useDocusaurusContext from "@docusaurus/useDocusaurusContext"; import Translate, { translate } from "@docusaurus/Translate"; import { useHistory, useLocation } from "@docusaurus/router"; import Link from "@docusaurus/Link"; -import Loadable from "@docusaurus/react-loadable"; import Layout from "@theme/Layout"; import Heading from "@theme/Heading"; @@ -24,13 +23,10 @@ import ShowcaseCard from "@site/src/pages/_components/ShowcaseCard"; import UserStatus from "@site/src/pages/_components/user/UserStatus"; import UserPrompts from "@site/src/pages/_components/user/UserPrompts"; import UserFavorite from "@site/src/pages/_components/user/UserFavorite"; +import ShareButtons from "@site/src/pages/_components/ShareButtons"; import { AuthContext, AuthProvider } from "@site/src/pages/_components/AuthContext"; import { fetchAllCopyCounts } from "@site/src/api"; -const ShareButtons = Loadable({ - loader: () => import("@site/src/pages/_components/ShareButtons"), - loading: () => null, -}); const TITLE = translate({ id: "homepage.title", diff --git a/i18n/ja/docusaurus-plugin-content-pages/index.tsx b/i18n/ja/docusaurus-plugin-content-pages/index.tsx index 3ae56b2cd..1be1f9785 100644 --- a/i18n/ja/docusaurus-plugin-content-pages/index.tsx +++ b/i18n/ja/docusaurus-plugin-content-pages/index.tsx @@ -6,7 +6,6 @@ import useDocusaurusContext from "@docusaurus/useDocusaurusContext"; import Translate, { translate } from "@docusaurus/Translate"; import { useHistory, useLocation } from "@docusaurus/router"; import Link from "@docusaurus/Link"; -import Loadable from "@docusaurus/react-loadable"; import Layout from "@theme/Layout"; import Heading from "@theme/Heading"; @@ -24,13 +23,10 @@ import ShowcaseCard from "@site/src/pages/_components/ShowcaseCard"; import UserStatus from "@site/src/pages/_components/user/UserStatus"; import UserPrompts from "@site/src/pages/_components/user/UserPrompts"; import UserFavorite from "@site/src/pages/_components/user/UserFavorite"; +import ShareButtons from "@site/src/pages/_components/ShareButtons"; import { AuthContext, AuthProvider } from "@site/src/pages/_components/AuthContext"; import { fetchAllCopyCounts } from "@site/src/api"; -const ShareButtons = Loadable({ - loader: () => import("@site/src/pages/_components/ShareButtons"), - loading: () => null, -}); const TITLE = translate({ id: "homepage.title", diff --git a/i18n/ko/docusaurus-plugin-content-pages/index.tsx b/i18n/ko/docusaurus-plugin-content-pages/index.tsx index cb7f296b7..7dfc8c27e 100644 --- a/i18n/ko/docusaurus-plugin-content-pages/index.tsx +++ b/i18n/ko/docusaurus-plugin-content-pages/index.tsx @@ -6,7 +6,6 @@ import useDocusaurusContext from "@docusaurus/useDocusaurusContext"; import Translate, { translate } from "@docusaurus/Translate"; import { useHistory, useLocation } from "@docusaurus/router"; import Link from "@docusaurus/Link"; -import Loadable from "@docusaurus/react-loadable"; import Layout from "@theme/Layout"; import Heading from "@theme/Heading"; @@ -24,13 +23,10 @@ import ShowcaseCard from "@site/src/pages/_components/ShowcaseCard"; import UserStatus from "@site/src/pages/_components/user/UserStatus"; import UserPrompts from "@site/src/pages/_components/user/UserPrompts"; import UserFavorite from "@site/src/pages/_components/user/UserFavorite"; +import ShareButtons from "@site/src/pages/_components/ShareButtons"; import { AuthContext, AuthProvider } from "@site/src/pages/_components/AuthContext"; import { fetchAllCopyCounts } from "@site/src/api"; -const ShareButtons = Loadable({ - loader: () => import("@site/src/pages/_components/ShareButtons"), - loading: () => null, -}); const TITLE = translate({ id: "homepage.title", diff --git a/i18n/pt/docusaurus-plugin-content-pages/index.tsx b/i18n/pt/docusaurus-plugin-content-pages/index.tsx index a20d08e6c..6dda37f36 100644 --- a/i18n/pt/docusaurus-plugin-content-pages/index.tsx +++ b/i18n/pt/docusaurus-plugin-content-pages/index.tsx @@ -6,7 +6,6 @@ import useDocusaurusContext from "@docusaurus/useDocusaurusContext"; import Translate, { translate } from "@docusaurus/Translate"; import { useHistory, useLocation } from "@docusaurus/router"; import Link from "@docusaurus/Link"; -import Loadable from "@docusaurus/react-loadable"; import Layout from "@theme/Layout"; import Heading from "@theme/Heading"; @@ -24,13 +23,10 @@ import ShowcaseCard from "@site/src/pages/_components/ShowcaseCard"; import UserStatus from "@site/src/pages/_components/user/UserStatus"; import UserPrompts from "@site/src/pages/_components/user/UserPrompts"; import UserFavorite from "@site/src/pages/_components/user/UserFavorite"; +import ShareButtons from "@site/src/pages/_components/ShareButtons"; import { AuthContext, AuthProvider } from "@site/src/pages/_components/AuthContext"; import { fetchAllCopyCounts } from "@site/src/api"; -const ShareButtons = Loadable({ - loader: () => import("@site/src/pages/_components/ShareButtons"), - loading: () => null, -}); const TITLE = translate({ id: "homepage.title", diff --git a/i18n/ru/docusaurus-plugin-content-pages/index.tsx b/i18n/ru/docusaurus-plugin-content-pages/index.tsx index 9e37e2641..5f66e062b 100644 --- a/i18n/ru/docusaurus-plugin-content-pages/index.tsx +++ b/i18n/ru/docusaurus-plugin-content-pages/index.tsx @@ -6,7 +6,6 @@ import useDocusaurusContext from "@docusaurus/useDocusaurusContext"; import Translate, { translate } from "@docusaurus/Translate"; import { useHistory, useLocation } from "@docusaurus/router"; import Link from "@docusaurus/Link"; -import Loadable from "@docusaurus/react-loadable"; import Layout from "@theme/Layout"; import Heading from "@theme/Heading"; @@ -24,13 +23,10 @@ import ShowcaseCard from "@site/src/pages/_components/ShowcaseCard"; import UserStatus from "@site/src/pages/_components/user/UserStatus"; import UserPrompts from "@site/src/pages/_components/user/UserPrompts"; import UserFavorite from "@site/src/pages/_components/user/UserFavorite"; +import ShareButtons from "@site/src/pages/_components/ShareButtons"; import { AuthContext, AuthProvider } from "@site/src/pages/_components/AuthContext"; import { fetchAllCopyCounts } from "@site/src/api"; -const ShareButtons = Loadable({ - loader: () => import("@site/src/pages/_components/ShareButtons"), - loading: () => null, -}); const TITLE = translate({ id: "homepage.title", diff --git a/src/pages/index.tsx b/src/pages/index.tsx index e75e00742..d33a32419 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -6,7 +6,6 @@ import useDocusaurusContext from "@docusaurus/useDocusaurusContext"; import Translate, { translate } from "@docusaurus/Translate"; import { useHistory, useLocation } from "@docusaurus/router"; import Link from "@docusaurus/Link"; -import Loadable from "@docusaurus/react-loadable"; import Layout from "@theme/Layout"; import Heading from "@theme/Heading"; @@ -24,13 +23,10 @@ import ShowcaseCard from "@site/src/pages/_components/ShowcaseCard"; import UserStatus from "@site/src/pages/_components/user/UserStatus"; import UserPrompts from "@site/src/pages/_components/user/UserPrompts"; import UserFavorite from "@site/src/pages/_components/user/UserFavorite"; +import ShareButtons from "@site/src/pages/_components/ShareButtons"; import { AuthContext, AuthProvider } from "@site/src/pages/_components/AuthContext"; import { fetchAllCopyCounts } from "@site/src/api"; -const ShareButtons = Loadable({ - loader: () => import("@site/src/pages/_components/ShareButtons"), - loading: () => null, -}); const TITLE = translate({ id: "homepage.title",