Skip to content

Commit

Permalink
fix: custom forms not clickable
Browse files Browse the repository at this point in the history
  • Loading branch information
hopetambala committed Nov 2, 2023
1 parent ed5b420 commit a8cf460
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions domains/DataCollection/FormGallery/FormsHorizontalView/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,10 @@ const FormsHorizontalView = ({
</View>
)}
<ScrollView horizontal>
{forms.map((form) => {
const cardId = uuid.v4();
return (
{forms.map((form) => (
<Card
key={cardId}
style={layout.cardSmallStyle}
onPress={() => {
navigateToCustomForm(form);
}}
onPress={() => navigateToCustomForm(form)}
onLongPress={() => pinForm(form)}
>
<View style={styles.cardContainer}>
Expand All @@ -37,8 +32,7 @@ const FormsHorizontalView = ({
</View>
</View>
</Card>
);
})}
))}
{forms?.length < 1 && (
<View style={layout.screenRow}>
<Card key={() => uuid.v4()}>
Expand Down

0 comments on commit a8cf460

Please sign in to comment.