refactor create/editTask into one upsertTask page, and remove all remaining console.log and debugging helpers

This commit is contained in:
Fhj0607
2026-04-30 11:34:26 +02:00
parent 152a91718a
commit 2f483b8ef9
7 changed files with 102 additions and 587 deletions

View File

@@ -86,20 +86,6 @@ export default function ViewDetailsSubject() {
}, [session, sId])
);
useEffect(() => {
const test = async () => {
try {
const { data, error } = await supabase.from('subjects').select('*').limit(1);
console.log('test data:', data);
console.log('test error:', error);
} catch (err) {
console.log('test crashed:', err);
}
};
test();
}, []);
const DeleteSubject = async (subjectId: string) => {
Alert.alert(
'Delete Subject',
@@ -474,4 +460,4 @@ export default function ViewDetailsSubject() {
/>
</View>
);
}
}