mirror of
https://ghproxy.com/https://github.com/StreakingMan/solvable-sheep-game
synced 2025-07-07 21:06:08 +08:00
fix: 纯净模式隐藏二维码
This commit is contained in:
parent
5353a40416
commit
3913982716
|
@ -90,7 +90,7 @@ const App: FC<{ theme: Theme<any> }> = ({ theme: initTheme }) => {
|
|||
<PersonalInfo />
|
||||
<div className={'flex-spacer'} style={{ minHeight: 52 }} />
|
||||
<Suspense fallback={<span>Loading</span>}>
|
||||
{!__DIY__ && <WxQrCode />}
|
||||
{!__DIY__ && !theme.pure && <WxQrCode />}
|
||||
</Suspense>
|
||||
{!__DIY__ && (
|
||||
<p
|
||||
|
|
|
@ -497,6 +497,7 @@ const Game: FC<{
|
|||
time={usedTime}
|
||||
score={score}
|
||||
success={level === maxLevel}
|
||||
pure={theme.pure}
|
||||
restartMethod={restart}
|
||||
/>
|
||||
)}
|
||||
|
|
|
@ -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<RankInfo[]>([]);
|
||||
const [username, setUsername] = useState<string>(
|
||||
localStorage.getItem(USER_NAME_STORAGE_KEY) || ''
|
||||
|
@ -281,7 +282,7 @@ const Score: FC<{
|
|||
</button>
|
||||
</div>
|
||||
)}
|
||||
<WxQrCode />
|
||||
{!pure && <WxQrCode />}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue
Block a user