Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(tableIcon): fix tap icon when onPress is undefined #12

Merged
merged 1 commit into from
Mar 16, 2018

Conversation

maximilianoforlenza
Copy link
Member

fix(tableIcon): fix when press icon

@@ -15,7 +15,7 @@ const TableIcon = ({column, datum}) => (
isFunction(column.icon) ? column.icon(datum) : column.icon,
isFunction(column.color) ? column.color(datum) : column.color
)}
onPress={() => column.onPress(datum)}
onPress={() => (column.onPress ? column.onPress(datum) : null)}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

onPress={isFunction(column.onPress) ? (() => column.onPress(datum)) : undefined}

@maximilianoforlenza
Copy link
Member Author

listo

@navarroaxel navarroaxel changed the title fix(tableIcon): fix when press icon fix(tableIcon): fix tap icon when onPress is undefined Mar 16, 2018
@navarroaxel navarroaxel merged commit 9e42d03 into master Mar 16, 2018
@navarroaxel navarroaxel deleted the fixInconOnPress branch March 16, 2018 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants