Browse Source

style fixes and remove tests

feature/upgrade_sdk
Carmine De Rosa 5 years ago
parent
commit
ecf35fee2b
  1. 1
      vds-app/App/components/Variables.js
  2. 8
      vds-app/App/screens/QuizIndex.js
  3. 1
      vds-app/App/screens/Recap.js
  4. 1
      vds-app/App/screens/RecapTrueFalse.js
  5. 3
      vds-app/App/screens/Results.js
  6. 3
      vds-app/App/screens/ResultsTrueFalse.js
  7. 34
      vds-app/App/screens/Splash.js

1
vds-app/App/components/Variables.js

@ -24,6 +24,7 @@ export const texts = {
quizzes: "Seleziona un argomento",
section_quizzes: "Quiz per argomento",
wrong_review: "Rivedi domande sbagliate",
wrong_title: "domande da rivedere",
section_quizzes_subtitle: "Esercitati su argomenti specifici",
exam: "Simulazione esame",
exam_simulation: "30 domande in 30min",

8
vds-app/App/screens/QuizIndex.js

@ -70,14 +70,6 @@ class QuizIndex extends React.Component {
<ScrollView >
<View style={{marginVertical: 60}}>
<RowItem name="TEST" textColor={colors.white} onPress={()=>
this.props.navigation.navigate("Quiz", {
title: "TEST",
questions: testQuestions,
color: colors.blue
})}/>
<RowItem name={texts.aerodynamics} subtitle={aerodynamicsQuestions.length} textColor={colors.white} onPress={()=>
this.props.navigation.navigate("Quiz", {
title: texts.aerodynamics,

1
vds-app/App/screens/Recap.js

@ -179,6 +179,7 @@ class Recap extends React.Component {
<Button
color={colors.white_alpha2}
hasShadow={true}
hasBg={true}
text={texts.restart}
onPress={() => {this.handleBackButton()}
}

1
vds-app/App/screens/RecapTrueFalse.js

@ -180,6 +180,7 @@ class RecapTrueFalse extends React.Component {
<Button
color={colors.white_alpha2}
hasShadow={true}
hasBg={true}
text={texts.restart}
onPress={() => {this.handleBackButton()}
}

3
vds-app/App/screens/Results.js

@ -217,6 +217,7 @@ class Results extends React.Component {
<Button
color={colors.red_light}
text={texts.recap}
hasBg={true}
onPress={ ()=> {
this.props.navigation.navigate("Recap", {
wrongAnswers: wrongAnswers
@ -224,6 +225,7 @@ class Results extends React.Component {
}}/>
<Button
isBig={false}
hasBg={true}
color={colors.white_alpha}
text={texts.restart}
onPress={() => {this.handleBackButton()}
@ -234,6 +236,7 @@ class Results extends React.Component {
<View style={styles.button}>
<Button
isBig={false}
hasBg={true}
color={colors.white_alpha}
text={texts.restart}
onPress={() => {this.handleBackButton()}

3
vds-app/App/screens/ResultsTrueFalse.js

@ -194,6 +194,7 @@ class Results extends React.Component {
<Button
color={colors.red_light}
text={texts.recap}
hasBg={true}
onPress={ ()=> {
this.props.navigation.navigate("RecapTrueFalse", {
wrongAnswers: wrongAnswers
@ -201,6 +202,7 @@ class Results extends React.Component {
}}/>
<Button
isBig={false}
hasBg={true}
color={colors.white_alpha}
text={texts.restart}
onPress={() => {this.handleBackButton()}
@ -211,6 +213,7 @@ class Results extends React.Component {
<View style={styles.button}>
<Button
isBig={false}
hasBg={true}
color={colors.white_alpha}
text={texts.restart}
onPress={() => {this.handleBackButton()}

34
vds-app/App/screens/Splash.js

@ -172,11 +172,27 @@ class Splash extends React.Component {
})}
/>
<Button
text={texts.exam}
subtitle={`(${texts.exam_simulation})`}
isBig={false}
hasBg={true}
noPadding={true}
hasShadow={true}
color={colors.white_alpha}
onPress={() =>
this.props.navigation.navigate("Exam", {
title: texts.exam,
questions: this.props.navigation.getParam("examQuestions") || examQuestions,
color: colors.white_alpha
})}
/>
{
storeWrongAnswers.length ? (
<Button
text={texts.wrong_review}
subtitle={`(${storeWrongAnswers.length})`}
subtitle={`(${storeWrongAnswers.length} ${texts.wrong_title})`}
isBig={false}
hasBg={true}
noPadding={true}
@ -193,22 +209,6 @@ class Splash extends React.Component {
) : null
}
<Button
text={texts.exam}
subtitle={`(${texts.exam_simulation})`}
isBig={false}
hasBg={true}
noPadding={true}
hasShadow={true}
color={colors.white_alpha}
onPress={() =>
this.props.navigation.navigate("Exam", {
title: texts.exam,
questions: this.props.navigation.getParam("examQuestions") || examQuestions,
color: colors.white_alpha
})}
/>
<Button
text={texts.trueFalse}
subtitle={`(${texts.trueFalseSubtitle})`}

Loading…
Cancel
Save