Add tag-adding logic
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -46,22 +46,22 @@ const FloatingActionButton = ({ visible = true }: { visible?: boolean }) => {
|
||||
{
|
||||
icon: 'tag',
|
||||
label: 'Tag',
|
||||
onPress: () => navigate('Add Item'),
|
||||
onPress: () => navigate('Add Tag'),
|
||||
},
|
||||
{
|
||||
icon: 'note-text',
|
||||
label: 'Text',
|
||||
onPress: () => navigate('Add Item'),
|
||||
onPress: () => navigate('Add Meme'),
|
||||
},
|
||||
{
|
||||
icon: 'image-album',
|
||||
label: 'Album',
|
||||
onPress: () => navigate('Add Item'),
|
||||
onPress: () => navigate('Add Meme'),
|
||||
},
|
||||
]}
|
||||
onStateChange={({ open }) => setState(open)}
|
||||
onPress={() => {
|
||||
if (state) navigate('Add Item');
|
||||
if (state) navigate('Add Meme');
|
||||
}}
|
||||
style={styles.fab}
|
||||
/>
|
||||
|
Reference in New Issue
Block a user