diff options
author | 2022-05-21 18:42:30 +0100 | |
---|---|---|
committer | 2022-05-21 20:04:22 +0100 | |
commit | 774113edda1b9219001ef4adab3f4e19c46bcecc (patch) | |
tree | 6cbf37abb72e688e5a01f2ceebe56c97874d65d7 /components/RemoveNoteButton.jsx | |
parent | bbdf817bc139f5d647a6508802e90370267d2af7 (diff) | |
download | notes_mobile-774113edda1b9219001ef4adab3f4e19c46bcecc.tar.gz notes_mobile-774113edda1b9219001ef4adab3f4e19c46bcecc.tar.bz2 notes_mobile-774113edda1b9219001ef4adab3f4e19c46bcecc.zip |
refactor
Diffstat (limited to 'components/RemoveNoteButton.jsx')
-rw-r--r-- | components/RemoveNoteButton.jsx | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/components/RemoveNoteButton.jsx b/components/RemoveNoteButton.jsx new file mode 100644 index 0000000..d88d6b0 --- /dev/null +++ b/components/RemoveNoteButton.jsx @@ -0,0 +1,31 @@ +import { StyleSheet, Text, View, Pressable } from 'react-native' + +const RemoveNoteButton = ({ removeNote }) => ( + <View style={styles.buttonsContainer}> + <View style={styles.button}> + <Pressable onPress={removeNote}> + <Text style={styles.buttonText}>Delete</Text> + </Pressable> + </View> + </View> +); + +const styles = StyleSheet.create({ + button: { + width: 80, + alignItems: 'center', + justifyContent: 'center', + backgroundColor: 'red', + }, + buttonText: { + fontWeight: 'bold', + color: 'white', + }, + buttonsContainer: { + flex: 1, + flexDirection: 'row', + justifyContent: 'flex-end', + }, +}); + +export default RemoveNoteButton; |