Commit 70166dd7 authored by Neosoulink's avatar Neosoulink
Browse files

refactor: minor review

parent 1e27137d
Loading
Loading
Loading
Loading
+110 −116
Original line number Diff line number Diff line
@@ -72,7 +72,7 @@ const STYLES = StyleSheet.create({
		flex: 1,
		justifyContent: 'center',
	},
	cardTextContentTitle: { fontSize: 18, paddingBottom: 2 },
	cardTextContentTitle: { fontSize: 18, paddingBottom: 2, color: CC.primary },
});

const TouchableCard: React.FC<TouchableCardPropsType> = ({
@@ -98,8 +98,7 @@ const TouchableCard: React.FC<TouchableCardPropsType> = ({
	disabled = false,
	rippleColor = CC.secondary + '10',
	children = null,
}) => {
	return (
}) => (
	<View style={{ ...STYLES.main, ...style }}>
		<Card style={{ ...STYLES.main, ...cardStyle }}>
			<TouchableRipple
@@ -147,8 +146,7 @@ const TouchableCard: React.FC<TouchableCardPropsType> = ({
											{!isEmpty(img) && (
												<Image
													source={
															typeof img ===
															'string'
														typeof img === 'string'
															? { uri: img }
															: img
															? img
@@ -187,8 +185,7 @@ const TouchableCard: React.FC<TouchableCardPropsType> = ({
								)}
							</View>

								{!isEmpty(indicatorIconProps) &&
									!indicatorText && (
							{!isEmpty(indicatorIconProps) && !indicatorText && (
								<View
									style={{
										...GS.centered,
@@ -210,9 +207,7 @@ const TouchableCard: React.FC<TouchableCardPropsType> = ({
										...GS.centered,
										...GS.px1,
										fontSize: indicatorTextSize,
											color:
												indicatorTextColor ||
												CC.primary,
										color: indicatorTextColor || CC.primary,
									}}>
									{indicatorText}
								</PaperText>
@@ -224,6 +219,5 @@ const TouchableCard: React.FC<TouchableCardPropsType> = ({
		</Card>
	</View>
);
};

export default TouchableCard;