Commit 029084fa authored by hewenhao's avatar hewenhao

feat: update

parent e1c64303
...@@ -3,9 +3,7 @@ import classNames from 'classnames' ...@@ -3,9 +3,7 @@ import classNames from 'classnames'
import { useStoreState } from '@/store/hooks' import { useStoreState } from '@/store/hooks'
import styles from './index.module.scss' import styles from './index.module.scss'
type EyeProtectionViewProps = ViewProps const EyeProtectionView = (props: ViewProps) => {
const EyeProtectionView = (props: EyeProtectionViewProps) => {
const { className, children, ...rest } = props const { className, children, ...rest } = props
const isEyeProtectionMode = useStoreState(states => states.userModel.isEyeProtectionMode) const isEyeProtectionMode = useStoreState(states => states.userModel.isEyeProtectionMode)
......
...@@ -63,9 +63,7 @@ const GamePlay = () => { ...@@ -63,9 +63,7 @@ const GamePlay = () => {
<EyeProtectionView className={styles.viewport}> <EyeProtectionView className={styles.viewport}>
<PageHead /> <PageHead />
{currentQuestion && stageDetail && ( {currentQuestion && stageDetail && (
<> <CountUp stageDetail={stageDetail} />
<CountUp stageDetail={stageDetail} />
</>
)} )}
<ScrollView className={styles.body} scrollY> <ScrollView className={styles.body} scrollY>
{currentQuestion && ( {currentQuestion && (
...@@ -74,18 +72,18 @@ const GamePlay = () => { ...@@ -74,18 +72,18 @@ const GamePlay = () => {
</ScrollView> </ScrollView>
{currentQuestion && ( {currentQuestion && (
<> <>
{currentQuestion?.questionType !== '选择题' && ( {currentQuestion?.questionType !== '选择题' && (
<number-keyboard onType={updateUserAnswer} /> <number-keyboard onType={updateUserAnswer} />
)} )}
{rightIcon && ( {rightIcon && (
<Image src={rightIcon} className={styles.right_icon}></Image> <Image src={rightIcon} className={styles.right_icon}></Image>
)} )}
<PageFooter <PageFooter
clearUserAnswer={clearUserAnswer} clearUserAnswer={clearUserAnswer}
handleGoNext={handleGoNext} handleGoNext={handleGoNext}
isLastQuestion={isLastQuestion} isLastQuestion={isLastQuestion}
canGoNext={canGoNext} canGoNext={canGoNext}
/> />
</> </>
)} )}
</EyeProtectionView> </EyeProtectionView>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment