Skip to content

Commit

Permalink
refactor: remove unused import of Loadable
Browse files Browse the repository at this point in the history
  • Loading branch information
rockbenben committed May 6, 2024
1 parent 89774f0 commit a06c172
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 65 deletions.
6 changes: 1 addition & 5 deletions i18n/ar/docusaurus-plugin-content-pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand All @@ -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",
Expand Down
6 changes: 1 addition & 5 deletions i18n/bn/docusaurus-plugin-content-pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand All @@ -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",
Expand Down
6 changes: 1 addition & 5 deletions i18n/de/docusaurus-plugin-content-pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand All @@ -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",
Expand Down
6 changes: 1 addition & 5 deletions i18n/en/docusaurus-plugin-content-pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand All @@ -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",
Expand Down
6 changes: 1 addition & 5 deletions i18n/es/docusaurus-plugin-content-pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand All @@ -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",
Expand Down
6 changes: 1 addition & 5 deletions i18n/fr/docusaurus-plugin-content-pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand All @@ -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",
Expand Down
6 changes: 1 addition & 5 deletions i18n/hi/docusaurus-plugin-content-pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand All @@ -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",
Expand Down
6 changes: 1 addition & 5 deletions i18n/it/docusaurus-plugin-content-pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand All @@ -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",
Expand Down
6 changes: 1 addition & 5 deletions i18n/ja/docusaurus-plugin-content-pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand All @@ -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",
Expand Down
6 changes: 1 addition & 5 deletions i18n/ko/docusaurus-plugin-content-pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand All @@ -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",
Expand Down
6 changes: 1 addition & 5 deletions i18n/pt/docusaurus-plugin-content-pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand All @@ -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",
Expand Down
6 changes: 1 addition & 5 deletions i18n/ru/docusaurus-plugin-content-pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand All @@ -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",
Expand Down
6 changes: 1 addition & 5 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand All @@ -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",
Expand Down

0 comments on commit a06c172

Please sign in to comment.