Refactoring a lot of the user items to use the USER data from the API, as it keeps a very similar structure to module.

This commit is contained in:
bobbert committed 2025-12-07 17:38:37 +00:00
1 parent 755d568090
commit 07e04884af
8 files changed
+231 -191

No files matched your search

+1 -5
View File
@@ -2,9 +2,6 @@
import {LogBox, Text} from "react-native";
import Screen from "../layout/Screen";
import ModuleList from "../entity/modules/ModuleList";
// import API from "../API/API";
// import initialModules from "../../data/modules.js";
// import RenderCount from "../UI/RenderCount";
import {Button, ButtonTray} from "../UI/Button";
import Icons from "../UI/Icons";
import useLoad from "../API/useLoad";
@@ -14,8 +11,7 @@ const ModuleListScreen = ({navigation}) => {
// Initialisation -------------
// let modules = initialModules;
LogBox.ignoreLogs(['Non-serializable values were found in the navigation state']);
const modulesEndpoint = 'https://softwarehub.uk/unibase/api/modules';
// State ----------------------