Skip to content

Commit

Permalink
fix: remove TouchableOpacity on control entry sample card (#403)
Browse files Browse the repository at this point in the history
* RM#75230
  • Loading branch information
vhu-axelor authored Feb 9, 2024
1 parent a90f986 commit bacd1c3
Showing 1 changed file with 11 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/

import React, {useEffect, useMemo, useState} from 'react';
import {StyleSheet, TouchableOpacity} from 'react-native';
import {StyleSheet} from 'react-native';
import {Card, ProgressBar, Text, useThemeColor} from '@axelor/aos-mobile-ui';
import {ControlEntry} from '../../../types';
import {searchControlEntrySampleLineApi} from '../../../api';
Expand All @@ -27,14 +27,12 @@ interface ControlEntrySampleCardProps {
controlEntrySampleId: number;
resultSelect: number;
samplefullName: string;
onPress?: () => void;
}
const ControlEntrySampleCard = ({
style,
controlEntrySampleId,
resultSelect,
samplefullName,
onPress = () => {},
}: ControlEntrySampleCardProps) => {
const Colors = useThemeColor();

Expand Down Expand Up @@ -66,18 +64,16 @@ const ControlEntrySampleCard = ({
}, [controlEntrySampleId]);

return (
<TouchableOpacity onPress={onPress} activeOpacity={0.9}>
<Card style={[styles.container, borderStyle, style]}>
<Text>{samplefullName}</Text>
<ProgressBar
style={styles.progressBar}
value={numberSampleFilled}
showPercent={false}
height={15}
styleTxt={styles.textProgressBar}
/>
</Card>
</TouchableOpacity>
<Card style={[styles.container, borderStyle, style]}>
<Text>{samplefullName}</Text>
<ProgressBar
style={styles.progressBar}
value={numberSampleFilled}
showPercent={false}
height={15}
styleTxt={styles.textProgressBar}
/>
</Card>
);
};

Expand Down

0 comments on commit bacd1c3

Please sign in to comment.