[FIX] Reviwed comments on the RP

This commit is contained in:
mathysPaul
2023-11-17 13:19:39 +01:00
parent 9882fd240e
commit c91bbfd2f1
6 changed files with 28 additions and 24 deletions
+4 -4
View File
@@ -222,7 +222,7 @@ const IconButton: React.FC<IconButtonProps> = ({
return (
<TouchableOpacity activeOpacity={1} onPress={toggleState} style={combinedContainerStyle}>
{IconActive && (
<Animated.View
<Animated.Text
style={[
{
padding: padding,
@@ -238,9 +238,9 @@ const IconButton: React.FC<IconButtonProps> = ({
]}
>
<IconActive size={size} variant={activeVariant} />
</Animated.View>
</Animated.Text>
)}
<Animated.View
<Animated.Text
style={[
{
padding: padding,
@@ -253,7 +253,7 @@ const IconButton: React.FC<IconButtonProps> = ({
]}
>
<Icon size={size} variant={variant} />
</Animated.View>
</Animated.Text>
</TouchableOpacity>
);
};