Merge pull request 'bugfix studentprofile' (#15) from update-existing-code into development

Reviewed-on: WizdomWaves/TedQuMobileApp#15
This commit is contained in:
vinoth 2024-12-11 04:32:24 +00:00
commit 7c8ca5a70d
3 changed files with 4 additions and 2 deletions

View File

@ -29,6 +29,9 @@ class QuestionScreen extends React.Component<any, any>{
}
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.token = await AsyncStorage.getItem('token')
const userInfo = await AsyncStorage.getItem('userInfo')

View File

@ -336,7 +336,6 @@ class StudentProfile extends React.Component<any, any>{
{classBasedTopic?.graph_data && classBasedTopic?.graph_data.map((topicItem: any, topicIndex: any) => (
<TouchableOpacity key={topicIndex} style={[BaseStyles.marHorizontal5, BaseStyles.marVertical5]} activeOpacity={0.8}
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,]}>
<Text style={[{color: "white",textAlign:'center'}]} numberOfLines={3} ellipsizeMode="tail">{topicItem?.topics} </Text>
<Text style={[{color: "white",textAlign:'center'}]}>{topicItem?.question_performance}%</Text>

View File

@ -409,7 +409,7 @@ export const AppStyles = StyleSheet.create({
alignItems: "center",
flex:1
},
subjectLink:{padding:5,backgroundColor:"#8D81F8",color:"white",borderRadius:50},
subjectLink:{padding:5,backgroundColor:"#8D81F8",color:"white",borderRadius:20},
container: {
backgroundColor: '#f5f6fa',