From 8b09ebd2bf4c529df728925b77cd56d56a265da8 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Sun, 9 Jul 2023 17:58:22 +0800 Subject: 😫 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/components/Authors.tsx | 6 +++--- docs/components/Avatar.tsx | 8 ++++---- docs/content/team.ts | 10 +++++----- 3 files changed, 12 insertions(+), 12 deletions(-) (limited to 'docs') diff --git a/docs/components/Authors.tsx b/docs/components/Authors.tsx index 634bd90..0623440 100644 --- a/docs/components/Authors.tsx +++ b/docs/components/Authors.tsx @@ -1,10 +1,10 @@ import { Avatar } from "./Avatar"; import cn from "classnames"; -import TURBO_TEAM from "../content/team"; +import HYDROROLL_TEAM from "../content/team"; import type { Author } from "../content/team"; export function Authors({ authors }: { authors: Array }) { - const validAuthors = authors.filter((author) => TURBO_TEAM[author]); + const validAuthors = authors.filter((author) => HYDROROLL_TEAM[author]); return (
}) { )} > {validAuthors.map((username) => ( - + ))}
diff --git a/docs/components/Avatar.tsx b/docs/components/Avatar.tsx index 8826daf..b748cab 100644 --- a/docs/components/Avatar.tsx +++ b/docs/components/Avatar.tsx @@ -17,17 +17,17 @@ export const Avatar = ({ name, picture, twitterUsername }: AuthorDetails) => (
Name
{name}
- {twitterUsername && ( + {GithubUsername && ( <> -
Twitter
+
Github
- {`@${twitterUsername}`} + {`@${GithubUsername}`}
diff --git a/docs/content/team.ts b/docs/content/team.ts index 7f4b27e..1c8ac0f 100644 --- a/docs/content/team.ts +++ b/docs/content/team.ts @@ -1,16 +1,16 @@ -const TURBO_TEAM: Record = { +const HYDROROLL_TEAM: Record = { HsiangNianian: { name: "简律纯", - twitterUsername: "HsiangNianian", + GithubUsername: "HsiangNianian", picture: "/images/people/HsiangNianian.jpg", }, }; -export type Author = keyof typeof TURBO_TEAM; +export type Author = keyof typeof HYDROROLL_TEAM; export type AuthorDetails = { name: string; - twitterUsername?: string; + GithubUsername?: string; picture: string; }; -export default TURBO_TEAM; +export default HYDROROLL_TEAM; -- cgit v1.2.3-70-g09d2