Final improvements for Groups PDF's
This commit is contained in:
@@ -5,6 +5,7 @@ import { styles } from "../styles";
|
||||
import { RadialResult } from "./radial.result";
|
||||
interface Props {
|
||||
detail: ModuleScore;
|
||||
title: string;
|
||||
}
|
||||
|
||||
const thresholds = [
|
||||
@@ -63,7 +64,7 @@ const customStyles = StyleSheet.create({
|
||||
},
|
||||
});
|
||||
|
||||
export const LevelExamDetails = ({ detail }: Props) => {
|
||||
export const LevelExamDetails = ({ detail, title }: Props) => {
|
||||
const updatedThresholds = thresholds.map((t) => ({
|
||||
...t,
|
||||
match: detail.score >= t.minValue && detail.score <= t.maxValue,
|
||||
@@ -86,7 +87,7 @@ export const LevelExamDetails = ({ detail }: Props) => {
|
||||
<Text
|
||||
style={[styles.textBold, styles.textColor, { fontSize: "10px" }]}
|
||||
>
|
||||
Level as per CEFR Levels
|
||||
{title}
|
||||
</Text>
|
||||
</View>
|
||||
<View style={customStyles.tableBody}>
|
||||
|
||||
Reference in New Issue
Block a user