From 6e8691f9de2678f4d79f43a1e973f414b9c71f2e Mon Sep 17 00:00:00 2001 From: hamster1963 <1410514192@qq.com> Date: Tue, 22 Oct 2024 17:51:57 +0800 Subject: [PATCH] style: network chart --- app/[locale]/(main)/ClientComponents/NetworkChart.tsx | 8 +------- .../(main)/ClientComponents/NetworkChartLoading.tsx | 8 +------- components/Switch.tsx | 4 ++-- 3 files changed, 4 insertions(+), 16 deletions(-) diff --git a/app/[locale]/(main)/ClientComponents/NetworkChart.tsx b/app/[locale]/(main)/ClientComponents/NetworkChart.tsx index 8a69ecc..9890b4f 100644 --- a/app/[locale]/(main)/ClientComponents/NetworkChart.tsx +++ b/app/[locale]/(main)/ClientComponents/NetworkChart.tsx @@ -181,13 +181,7 @@ export const NetworkChart = React.memo(function NetworkChart({
- { - router.push(`/${locale}/`); - }} - className="flex flex-none cursor-pointer items-center gap-0.5 text-xl" - > - + {serverName} diff --git a/app/[locale]/(main)/ClientComponents/NetworkChartLoading.tsx b/app/[locale]/(main)/ClientComponents/NetworkChartLoading.tsx index 3a9c908..6c3d383 100644 --- a/app/[locale]/(main)/ClientComponents/NetworkChartLoading.tsx +++ b/app/[locale]/(main)/ClientComponents/NetworkChartLoading.tsx @@ -12,13 +12,7 @@ export default function NetworkChartLoading() {
- { - router.push(`/${locale}/`); - }} - className="flex items-center cursor-pointer gap-0.5 text-xl" - > - +
diff --git a/components/Switch.tsx b/components/Switch.tsx index 41e865f..43db879 100644 --- a/components/Switch.tsx +++ b/components/Switch.tsx @@ -2,7 +2,7 @@ import { cn } from "@/lib/utils"; import { motion } from "framer-motion"; -import React, { useRef, useEffect } from "react"; +import React, { useEffect, useRef } from "react"; export default function Switch({ allTag, @@ -52,7 +52,7 @@ export default function Switch({ "relative cursor-pointer rounded-3xl px-2.5 py-[8px] text-[13px] font-[600] transition-all duration-500", nowTag === tag ? "text-black dark:text-white" - : "text-stone-400 dark:text-stone-500" + : "text-stone-400 dark:text-stone-500", )} > {nowTag === tag && (