Skip to content

Commit

Permalink
finish all bugs from blitz
Browse files Browse the repository at this point in the history
  • Loading branch information
avichaljadeja2002 committed Feb 5, 2025
2 parents 67bc037 + 088c9a9 commit 9953cd8
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 17 deletions.
37 changes: 20 additions & 17 deletions app/notes.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import React, { useCallback, useState } from 'react';
import { View, Text, TextInput, TouchableOpacity } from 'react-native';
import { View, Text, TextInput, TouchableOpacity, TouchableWithoutFeedback } from 'react-native';
import { cLog } from '../components/log';
import { styles } from '@/assets/styles/styles';
import { useFocusEffect } from '@react-navigation/native';
import AsyncStorage from '@react-native-async-storage/async-storage';
import { call } from '../components/apiCall';
import { Keyboard } from 'react-native'

export default function Notes() {
const initialData = { text: "" };
Expand Down Expand Up @@ -55,22 +56,24 @@ export default function Notes() {
);

return (
<View style={styles.noteContainer}>
<View style={styles.noteHeader}>
<Text style={styles.noteTitle}>Notes</Text>
<TextInput
value={formData.text}
onChangeText={(text) => handleChange("text", text)}
style={styles.textInput}
placeholder="Write your notes here..."
multiline={true}
/>
<TouchableWithoutFeedback onPress={Keyboard.dismiss}>
<View style={styles.noteContainer}>
<View style={styles.noteHeader}>
<Text style={styles.noteTitle}>Notes</Text>
<TextInput
value={formData.text}
onChangeText={(text) => handleChange("text", text)}
style={styles.textInput}
placeholder="Write your notes here..."
multiline={true}
/>
</View>
<View style={styles.footer}>
<TouchableOpacity style={styles.noteSaveButton} onPress={handleSave}>
<Text style={styles.saveText}>Save</Text>
</TouchableOpacity>
</View>
</View>
<View style={styles.footer}>
<TouchableOpacity style={styles.noteSaveButton} onPress={handleSave}>
<Text style={styles.saveText}>Save</Text>
</TouchableOpacity>
</View>
</View>
</TouchableWithoutFeedback>
);
};
Binary file removed backend/omniplanner/omniplanner.db
Binary file not shown.

0 comments on commit 9953cd8

Please sign in to comment.