mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-09-07 20:46:45 +00:00
📝 Docs: 商店插件可用性筛选 & 更新排序 (#3334)
This commit is contained in:
@ -16,7 +16,7 @@ export function HomeFeature({
|
||||
description,
|
||||
annotaion,
|
||||
children,
|
||||
}: Feature): JSX.Element {
|
||||
}: Feature): React.ReactNode {
|
||||
return (
|
||||
<div className="flex flex-col items-center justify-center p-4">
|
||||
<p className="text-sm text-base-content/70 font-medium tracking-wide uppercase">
|
||||
@ -32,7 +32,7 @@ export function HomeFeature({
|
||||
);
|
||||
}
|
||||
|
||||
function HomeFeatureSingleColumn(props: Feature): JSX.Element {
|
||||
function HomeFeatureSingleColumn(props: Feature): React.ReactNode {
|
||||
return (
|
||||
<div className="grid grid-cols-1 px-4 py-8 md:px-16 mx-auto">
|
||||
<HomeFeature {...props} />
|
||||
@ -46,7 +46,7 @@ function HomeFeatureDoubleColumn({
|
||||
}: {
|
||||
features: [Feature, Feature];
|
||||
children?: [React.ReactNode, React.ReactNode];
|
||||
}): JSX.Element {
|
||||
}): React.ReactNode {
|
||||
const [children1, children2] = children ?? [];
|
||||
|
||||
return (
|
||||
@ -57,7 +57,7 @@ function HomeFeatureDoubleColumn({
|
||||
);
|
||||
}
|
||||
|
||||
function HomeFeatures(): JSX.Element {
|
||||
function HomeFeatures(): React.ReactNode {
|
||||
return (
|
||||
<>
|
||||
<HomeFeatureSingleColumn
|
||||
|
@ -10,7 +10,7 @@ import copy from "copy-text-to-clipboard";
|
||||
import IconCopy from "@theme/Icon/Copy";
|
||||
import IconSuccess from "@theme/Icon/Success";
|
||||
|
||||
function HomeHeroInstallButton(): JSX.Element {
|
||||
function HomeHeroInstallButton(): React.ReactNode {
|
||||
const code = "pipx run nb-cli create";
|
||||
|
||||
const [isCopied, setIsCopied] = useState(false);
|
||||
@ -37,7 +37,7 @@ function HomeHeroInstallButton(): JSX.Element {
|
||||
);
|
||||
}
|
||||
|
||||
function HomeHero(): JSX.Element {
|
||||
function HomeHero(): React.ReactNode {
|
||||
const {
|
||||
siteConfig: { tagline },
|
||||
} = useDocusaurusContext();
|
||||
|
@ -1,10 +1,10 @@
|
||||
import React from "react";
|
||||
|
||||
import "./styles.css";
|
||||
import HomeFeatures from "./Feature";
|
||||
import HomeHero from "./Hero";
|
||||
import "./styles.css";
|
||||
|
||||
export default function HomeContent(): JSX.Element {
|
||||
export default function HomeContent(): React.ReactNode {
|
||||
return (
|
||||
<div className="home-container">
|
||||
<HomeHero />
|
||||
|
Reference in New Issue
Block a user