From 04dc1e98dd448c0fd6661559722cf594ab2e751e Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Tue, 1 Oct 2024 20:21:53 +0800 Subject: [PATCH] perf: improve avatar display timing for non-avatar user --- src/client/components/layout/UserConfig.tsx | 2 +- src/client/routes/website/$websiteId/index.tsx | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/client/components/layout/UserConfig.tsx b/src/client/components/layout/UserConfig.tsx index bdd4c78..d8693f6 100644 --- a/src/client/components/layout/UserConfig.tsx +++ b/src/client/components/layout/UserConfig.tsx @@ -76,7 +76,7 @@ export const UserConfig: React.FC = React.memo((props) => { {userInfo?.avatar && } - + {nickname.substring(0, 2).toUpperCase()} diff --git a/src/client/routes/website/$websiteId/index.tsx b/src/client/routes/website/$websiteId/index.tsx index 2a45578..d0bcb12 100644 --- a/src/client/routes/website/$websiteId/index.tsx +++ b/src/client/routes/website/$websiteId/index.tsx @@ -6,7 +6,6 @@ import { Loading } from '@/components/Loading'; import { NotFoundTip } from '@/components/NotFoundTip'; import { Button } from '@/components/ui/button'; import { ScrollArea, ScrollBar } from '@/components/ui/scroll-area'; -import { Separator } from '@/components/ui/separator'; import { WebsiteCodeBtn } from '@/components/website/WebsiteCodeBtn'; import { WebsiteLighthouseBtn } from '@/components/website/WebsiteLighthouseBtn'; import { WebsiteMetricsTable } from '@/components/website/WebsiteMetricsTable';