mirror of
https://github.com/mudabbir-ahmad/Project-MAD-crudler.git
synced 2026-10-08 04:40:20 +00:00
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:
1 parent
57369791a4
commit
dd5324ff39
5 files changed
+49
-57
No files matched your search
@@ -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>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user