Added useLoad function, updated moduleView to include cohort, added useLoad to module list screen and module form, so there is a dropdown now for leaders as well.

This commit is contained in:
bobbert committed 2025-12-06 16:52:00 +00:00
1 parent 57369791a4
commit dd5324ff39
5 files changed
+49 -57

No files matched your search

+3 -3
View File
@@ -1,5 +1,5 @@
import { useRef } from "react";
import { Text, StyleSheet } from "react-native";
import {useRef} from "react";
import {Text, StyleSheet} from "react-native";
const RenderCount = ({backgroundColor = 'dodgerblue', fontColor = 'white'}) => {
// Initialisation -------------
@@ -9,7 +9,7 @@ const RenderCount = ({backgroundColor = 'dodgerblue', fontColor = 'white'}) => {
// Handlers -------------------
// View -----------------------
return (
<Text style={[styles.count, { backgroundColor, color: fontColor}]}>
<Text style={[styles.count, {backgroundColor, color: fontColor}]}>
Number of renders: {renderCount.current}
</Text>
);