aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/docs/components/clients/Clients.tsx
diff options
context:
space:
mode:
author简律纯 <i@jyunko.cn>2023-11-03 21:13:33 +0800
committer简律纯 <i@jyunko.cn>2023-11-03 21:13:33 +0800
commit9f0d43fe099a95ab1516ae951dcb60a89e76a5a5 (patch)
tree51614fe47bff8bb11028a07d4a35c34c9ff6594a /docs/components/clients/Clients.tsx
parent8f135707d069c900e055dae71e69909d6b9a41bb (diff)
downloadHydroRoll-9f0d43fe099a95ab1516ae951dcb60a89e76a5a5.tar.gz
HydroRoll-9f0d43fe099a95ab1516ae951dcb60a89e76a5a5.zip
chore: delete useless codes
Diffstat (limited to 'docs/components/clients/Clients.tsx')
-rw-r--r--docs/components/clients/Clients.tsx61
1 files changed, 0 insertions, 61 deletions
diff --git a/docs/components/clients/Clients.tsx b/docs/components/clients/Clients.tsx
deleted file mode 100644
index 199794e..0000000
--- a/docs/components/clients/Clients.tsx
+++ /dev/null
@@ -1,61 +0,0 @@
-import React from "react";
-import cn from "classnames";
-import { users } from "./users";
-import { Logo } from "./Logo";
-
-export function Clients({
- linked,
- staticWidth,
- companyList,
-}: {
- linked?: boolean;
- staticWidth?: boolean;
- companyList?: string[];
-}) {
- const showcaseDark = [];
- const showcaseLight = [];
-
- const LogoWrapper = ({ className, children }) => {
- if (!staticWidth) return children;
- return (
- <div
- className={cn(
- "w-48 lg:w-40 flex items-center justify-center",
- className
- )}
- >
- {children}
- </div>
- );
- };
-
- users
- .filter((i) => (companyList ? companyList.includes(i.caption) : true))
- .forEach((user) => {
- if (user.pinned) {
- showcaseDark.push(
- <LogoWrapper
- key={`${user.caption}-dark`}
- className="flex dark:hidden"
- >
- <Logo user={user} theme={"dark"} isLink={linked} />
- </LogoWrapper>
- );
- showcaseLight.push(
- <LogoWrapper
- key={`${user.caption}-light`}
- className="hidden dark:flex"
- >
- <Logo user={user} theme={"light"} isLink={linked} />
- </LogoWrapper>
- );
- }
- });
-
- return (
- <>
- {showcaseDark}
- {showcaseLight}
- </>
- );
-}