Update src/components/BottomSheet.tsx

Co-authored-by: Baptiste Grob <60621355+baptiste-grob@users.noreply.github.com>
This commit is contained in:
Antonella Sgarlatta
2021-04-26 15:49:34 -03:00
committed by GitHub
parent b2fbaafebe
commit 65fbf5d889

View File

@@ -227,7 +227,7 @@ const ActionItem: React.FC<{
return (
<ActionContainer>
<Item {...action} onPress={onPress} disabled={!action.callback} />
<Item {...action} onPress={onPress} disabled={loading || !action.callback} />
{loading && <LoadingIndicator />}
</ActionContainer>
);