fln-espranza 0.0.31 → 0.0.32
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.
package/components/EBadge.tsx
CHANGED
|
@@ -7,15 +7,16 @@ import { CheckCircleIcon } from 'react-native-heroicons/solid';
|
|
|
7
7
|
|
|
8
8
|
interface IProps {
|
|
9
9
|
text: string;
|
|
10
|
-
|
|
10
|
+
bgColor: string;
|
|
11
|
+
textColor: string
|
|
11
12
|
completed?: boolean;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
|
-
export default function EBadge({ text, completed,
|
|
15
|
+
export default function EBadge({ text, completed, bgColor, textColor }: IProps) {
|
|
15
16
|
return (
|
|
16
|
-
<View style={[tw`flex-row p-1 px-2 bg-[${
|
|
17
|
+
<View style={[tw`flex-row p-1 px-2 bg-[${bgColor}] rounded-full`,]}>
|
|
17
18
|
{completed ? <CheckCircleIcon style={tw`text-white -ml-1 mr-1`} size={16} /> : null}
|
|
18
|
-
<EText size='xs' style={tw`font-semibold text-
|
|
19
|
+
<EText size='xs' style={tw`font-semibold text-[${textColor}]`}>
|
|
19
20
|
{text}
|
|
20
21
|
</EText>
|
|
21
22
|
</View>
|