fln-espranza 0.0.17 → 0.0.19

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.
@@ -22,7 +22,8 @@ export default function Avatar({ size, source, nameFirstLetter, textColor }: Ava
22
22
  "#2D3A5D",
23
23
  ]
24
24
 
25
- let color = colors[Math.floor(Math.random() * colors.length)]
25
+ // let color = colors[Math.floor(Math.random() * colors.length)]
26
+ const [color, setColor] = React.useState(colors[Math.floor(Math.random() * colors.length)]);
26
27
  return (
27
28
  <View
28
29
  style={tw.style(
@@ -36,7 +37,7 @@ export default function Avatar({ size, source, nameFirstLetter, textColor }: Ava
36
37
  )}
37
38
  >
38
39
  {source ? <Image style={tw`w-full h-full `} source={source} /> :
39
- <EText style={tw`text-xl font-bold text-white capitalize`}>{nameFirstLetter}</EText>}
40
+ <EText style={tw`text-xl font-bold text-white uppercase`}>{nameFirstLetter}</EText>}
40
41
  </View>
41
42
  );
42
43
  }
@@ -15,9 +15,10 @@ interface IProps {
15
15
  completed: boolean;
16
16
  anotherButton?: boolean;
17
17
  onPress?: () => void;
18
+ onAnotherButtonPress?: () => void;
18
19
  }
19
20
 
20
- export default function ETimeLineCard({ title, description, completed, anotherButton, onPress }: IProps) {
21
+ export default function ETimeLineCard({ title, description, completed, anotherButton, onPress, onAnotherButtonPress }: IProps) {
21
22
  return (
22
23
  <TouchableOpacity
23
24
  onPress={() => onPress && onPress()}
@@ -53,7 +54,7 @@ export default function ETimeLineCard({ title, description, completed, anotherBu
53
54
 
54
55
  {
55
56
  anotherButton ? (
56
- <TouchableOpacity style={tw`flex-row`}>
57
+ <TouchableOpacity style={tw`flex-row`} onPress={onAnotherButtonPress}>
57
58
  <EText size="sm" style={[tw`ml-2 font-semibold`, {color: Colors['primary-base']}]}>
58
59
  Another Assessment
59
60
  </EText>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fln-espranza",
3
- "version": "0.0.17",
3
+ "version": "0.0.19",
4
4
  "description": "All components used inside FLN Project of Espranza Innovations",
5
5
  "main": "index.ts",
6
6
  "scripts": {