From a8fc788f98746a8d09af8732c196ce6bee442f2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=90=E7=9E=BB=20Luci?= Date: Fri, 18 Nov 2022 23:54:37 +0800 Subject: [PATCH] fix(dumi): get contributor error on 404 page (#38708) --- .dumi/theme/slots/Content/index.tsx | 52 ++++++++++++++++------------- 1 file changed, 28 insertions(+), 24 deletions(-) diff --git a/.dumi/theme/slots/Content/index.tsx b/.dumi/theme/slots/Content/index.tsx index 0d08f5fc9f..d861e34145 100644 --- a/.dumi/theme/slots/Content/index.tsx +++ b/.dumi/theme/slots/Content/index.tsx @@ -178,32 +178,36 @@ const Content: FC<{ children: ReactNode }> = ({ children }) => { )} {children} - - loading ? ( - - ) : ( - item && ( - - + loading ? ( + + ) : ( + item && ( + - {item.username} - - + + {item.username} + + + ) ) - ) - } - repo="ant-design" - owner="ant-design" - /> + } + repo="ant-design" + owner="ant-design" + /> + )}