-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sfr fixes part 2 #52
base: main
Are you sure you want to change the base?
Sfr fixes part 2 #52
Conversation
…opens the search modal
db3cfbf
to
5a9fb93
Compare
uhhh i have no idea what i did but the code still works at least |
const {colors} = useTheme(); | ||
const [content, setContent] = useState<string>(note.content); | ||
|
||
const saveNote = async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
onSave({...note, content}); | ||
}; | ||
|
||
const styles = StyleSheet.create({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
console.log('storedFormData: ', storedFormData); | ||
if (storedFormData != null) { | ||
const data = JSON.parse(storedFormData); | ||
setArrayData(data.arrayData); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There should be a toast or some other indicator to the user that the form was loaded from offline storage / cache (use a more user-friendly term for this).
}} | ||
onLongPress={() => { | ||
if (!('id' in item)) { | ||
Alert.alert('You cannot edit an offline note!'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why can you not edit an offline note?
No description provided.