Merge pull request 'bugfix studentprofile' (#15) from update-existing-code into development
Reviewed-on: WizdomWaves/TedQuMobileApp#15
This commit is contained in:
commit
7c8ca5a70d
|
@ -29,6 +29,9 @@ class QuestionScreen extends React.Component<any, any>{
|
||||||
}
|
}
|
||||||
|
|
||||||
async componentDidMount() {
|
async componentDidMount() {
|
||||||
|
const { navigation, route } = this.props;
|
||||||
|
const title = 'Psychometric Questions';
|
||||||
|
navigation.setOptions({ title });
|
||||||
this.getCurrentAcademicYearData() //fetch the Current Academic year from Login Response
|
this.getCurrentAcademicYearData() //fetch the Current Academic year from Login Response
|
||||||
this.token = await AsyncStorage.getItem('token')
|
this.token = await AsyncStorage.getItem('token')
|
||||||
const userInfo = await AsyncStorage.getItem('userInfo')
|
const userInfo = await AsyncStorage.getItem('userInfo')
|
||||||
|
|
|
@ -336,7 +336,6 @@ class StudentProfile extends React.Component<any, any>{
|
||||||
{classBasedTopic?.graph_data && classBasedTopic?.graph_data.map((topicItem: any, topicIndex: any) => (
|
{classBasedTopic?.graph_data && classBasedTopic?.graph_data.map((topicItem: any, topicIndex: any) => (
|
||||||
<TouchableOpacity key={topicIndex} style={[BaseStyles.marHorizontal5, BaseStyles.marVertical5]} activeOpacity={0.8}
|
<TouchableOpacity key={topicIndex} style={[BaseStyles.marHorizontal5, BaseStyles.marVertical5]} activeOpacity={0.8}
|
||||||
onPress={this.onTopicBasedResults.bind(this, topicItem, classBasedTopic)}>
|
onPress={this.onTopicBasedResults.bind(this, topicItem, classBasedTopic)}>
|
||||||
{/* <Text style={[{ backgroundColor: topicItem?.color_code }, AppStyles.performanceTile,]}>{topicItem?.topics} {topicItem?.question_performance}%</Text> */}
|
|
||||||
<View style={[{ backgroundColor: topicItem?.color_code }, AppStyles.performanceTile,]}>
|
<View style={[{ backgroundColor: topicItem?.color_code }, AppStyles.performanceTile,]}>
|
||||||
<Text style={[{color: "white",textAlign:'center'}]} numberOfLines={3} ellipsizeMode="tail">{topicItem?.topics} </Text>
|
<Text style={[{color: "white",textAlign:'center'}]} numberOfLines={3} ellipsizeMode="tail">{topicItem?.topics} </Text>
|
||||||
<Text style={[{color: "white",textAlign:'center'}]}>{topicItem?.question_performance}%</Text>
|
<Text style={[{color: "white",textAlign:'center'}]}>{topicItem?.question_performance}%</Text>
|
||||||
|
|
|
@ -409,7 +409,7 @@ export const AppStyles = StyleSheet.create({
|
||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
flex:1
|
flex:1
|
||||||
},
|
},
|
||||||
subjectLink:{padding:5,backgroundColor:"#8D81F8",color:"white",borderRadius:50},
|
subjectLink:{padding:5,backgroundColor:"#8D81F8",color:"white",borderRadius:20},
|
||||||
|
|
||||||
container: {
|
container: {
|
||||||
backgroundColor: '#f5f6fa',
|
backgroundColor: '#f5f6fa',
|
||||||
|
|
Loading…
Reference in New Issue