From 3913982716d570d11afbeacdad8dd5d6d522eb37 Mon Sep 17 00:00:00 2001 From: streakingman Date: Thu, 13 Oct 2022 20:07:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=BA=AF=E5=87=80=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E9=9A=90=E8=97=8F=E4=BA=8C=E7=BB=B4=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.tsx | 2 +- src/components/Game.tsx | 1 + src/components/Score.tsx | 5 +++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index efae0f0..d12d24f 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -90,7 +90,7 @@ const App: FC<{ theme: Theme }> = ({ theme: initTheme }) => {
Loading}> - {!__DIY__ && } + {!__DIY__ && !theme.pure && } {!__DIY__ && (

)} diff --git a/src/components/Score.tsx b/src/components/Score.tsx index 17f4ee1..27cb873 100644 --- a/src/components/Score.tsx +++ b/src/components/Score.tsx @@ -37,8 +37,9 @@ const Score: FC<{ score: number; time: number; success: boolean; + pure?: boolean; restartMethod: () => void; -}> = ({ level, score, time, success, restartMethod }) => { +}> = ({ level, score, time, success, restartMethod, pure = false }) => { const [rankList, setRankList] = useState([]); const [username, setUsername] = useState( localStorage.getItem(USER_NAME_STORAGE_KEY) || '' @@ -281,7 +282,7 @@ const Score: FC<{

)} - + {!pure && } );