fln-espranza 0.0.12 → 0.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,6 +8,7 @@ import Spacer from "./Spacer";
8
8
  import Avatar from "./Avatar";
9
9
  import { Colors } from "../utils/Color";
10
10
  import MenuItems from "./MenuItems";
11
+ import EIconLogout from "./icons/EIconLogout";
11
12
 
12
13
  type menuItems = {
13
14
  title: string,
@@ -19,11 +20,11 @@ interface IProps {
19
20
  name: string,
20
21
  profile: string,
21
22
  menuItems: menuItems[];
22
- menuItems2?: menuItems[];
23
23
  navigation: any;
24
+ logout?: () => void;
24
25
  }
25
26
 
26
- const Drawer = ({ name, profile, menuItems, menuItems2, navigation }: IProps) => {
27
+ const Drawer = ({ name, profile, menuItems, navigation, logout }: IProps) => {
27
28
  return (
28
29
  <ScrollView
29
30
  scrollEnabled={true}
@@ -66,46 +67,20 @@ const Drawer = ({ name, profile, menuItems, menuItems2, navigation }: IProps) =>
66
67
  )
67
68
  })
68
69
  }
69
- <Spacer />
70
- <Spacer />
71
- {/* <MenuItems
72
- title="Profile"
73
- onPress={() => navigation.navigate("ProfileScreen")}
74
- />
70
+
75
71
  <MenuItems
76
- title="Settings"
72
+ title={"Logout"}
73
+ icon={<EIconLogout
74
+ size={24}
75
+ style={tw`text-[${Colors["primary-base"]}]`}
76
+ />}
77
+ onPress={() => logout()}
77
78
  />
78
- <MenuItems
79
- title="Logout"
80
- /> */}
81
- {
82
- menuItems2?.map((item, index) => {
83
- return (
84
- <MenuItems
85
- key={index}
86
- title={item.title}
87
- icon={item.icon}
88
- onPress={() => navigation.navigate(item.screen)}
89
- />
90
- )
91
- })
92
- }
79
+
93
80
 
94
81
  </View>
95
82
  </ScrollView>
96
83
  );
97
84
  };
98
85
 
99
- const styles = StyleSheet.create({
100
- container: {
101
- backgroundColor: '#fff',
102
- padding: 10,
103
- },
104
- logoStyle: {
105
- height: 20,
106
- width: '80%',
107
- alignSelf: 'center',
108
- },
109
- });
110
-
111
86
  export default Drawer;
@@ -1,8 +1,8 @@
1
1
  import React, { useState } from 'react';
2
2
  import { TouchableOpacity, View, TouchableOpacityProps } from 'react-native';
3
- import { Colors } from 'react-native/Libraries/NewAppScreen';
4
3
  import tw from '../../../lib/tailwind';
5
4
  import EText from './EText';
5
+ import { Colors } from "../utils/Color";
6
6
 
7
7
 
8
8
  interface RadioButtonProps extends TouchableOpacityProps {
@@ -1,6 +1,6 @@
1
1
  import React from 'react'
2
- import { Colors } from 'react-native/Libraries/NewAppScreen';
3
2
  import tw from '../lib/tailwind';
3
+ import { Colors } from '../utils/Color';
4
4
  import EText from './EText';
5
5
  // import { EText } from '../../../components'
6
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fln-espranza",
3
- "version": "0.0.12",
3
+ "version": "0.0.14",
4
4
  "description": "All components used inside FLN Project of Espranza Innovations",
5
5
  "main": "index.ts",
6
6
  "scripts": {